<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Sara, did you install gfortran and gcc under MS Windows or under Cygwin.  You need the latter.<div class="">As far as I know, MITgcm is not supported directly under MS Windows.<div class=""><br class=""><div class=""><div>Note that Cygwin is not a very efficient way to run MITgcm — I used to use Cygwin ~20 years ago but there are better options now.</div><div>I recommend that you install a linux distro on your laptop or workstation, either via dual-boot or in a virtual machine.</div><div><br class=""></div><div>If you decide to go with virtual machine, there is some step-by-step example instructions here for MITgcm on VirtualBox:</div><div><a href="https://github.com/MITgcm-contrib/ecco_darwin/blob/master/MITgcm_VirtualBox.txt" class="">https://github.com/MITgcm-contrib/ecco_darwin/blob/master/MITgcm_VirtualBox.txt</a></div><div><br class=""></div><div>Cheers, Dimitris</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Sep 12, 2020, at 11:24 AM, Miller, Sara G <<a href="mailto:smiller85@gatech.edu" class="">smiller85@gatech.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">Hello,</div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">I am new to MITgcm and programming with command line, so thank you in advance for your help and patience!</div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">I am trying to run the global ocean circulation tutorial I downloaded from Github. I am using Git Bash and have installed the Git version of MITgcm. I have also installed gfortran (/c/MinGW/bin/gfortran) and gcc (/c/MinGW/bin/gcc).<br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">I receive an error when trying to use genmake2. The following are print-outs of the errors I receive:</div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">$ ../../../tools/genmake2 -mods ../code<br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">GENMAKE :<div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">A program for GENerating MAKEfiles for the MITgcm project.</div><div style="margin: 0px;" class="">   For a quick list of options, use "genmake2 -h"</div><div style="margin: 0px;" class="">or for more detail see the documentation, section "Building the model"</div><div style="margin: 0px;" class="">   (under "Getting Started") at:  <a href="https://mitgcm.readthedocs.io/" class="">https://mitgcm.readthedocs.io/</a></div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">===  Processing options files and arguments  ===</div><div style="margin: 0px;" class="">  getting local config information:  none found</div><div style="margin: 0px;" class="">Warning: ROOTDIR was not specified ; try using a local copy of MITgcm found at "../../.."</div><div style="margin: 0px;" class="">  getting OPTFILE information:</div><div style="margin: 0px;" class="">Warning: no OPTFILE specified so we'll look for possible settings</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">===  Searching for possible settings for OPTFILE  ===</div><div style="margin: 0px;" class="">  The platform appears to be:  mingw64_nt-10.0-18363_amd64</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">Error: No Fortran compilers were found in your path.  Please specify one using:</div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">    1) an "optfile" on (eg. "-optfile=path/to/OPTFILE"),</div><div style="margin: 0px;" class="">    2) a command-line option (eg. "-fc NAME"), or</div><div style="margin: 0px;" class="">    3) the FC or MITGCM_FC environment variables.</div><br class="">I do not see any options in the build options directory that matches my platform (<span style="margin: 0px; background-color: rgb(255, 255, 255); display: inline !important;" class="">mingw64_nt-10.0-18363_amd64</span>). I have also installed Cygwin64 to be able to run Linux commands, thinking I could use a Linux build option. However, when I try to specify a Linux optfile, I reveive the following error:</div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">$ ../../../tools/genmake2 -mods ../code -optfile=../../../tools/build_options/linux_amd64_gfortran<br class=""><br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">GENMAKE :<div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">A program for GENerating MAKEfiles for the MITgcm project.</div><div style="margin: 0px;" class="">   For a quick list of options, use "genmake2 -h"</div><div style="margin: 0px;" class="">or for more detail see the documentation, section "Building the model"</div><div style="margin: 0px;" class="">   (under "Getting Started") at:  <a href="https://mitgcm.readthedocs.io/" class="">https://mitgcm.readthedocs.io/</a></div><div style="margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class="">===  Processing options files and arguments  ===</div><div style="margin: 0px;" class="">  getting local config information:  none found</div><div style="margin: 0px;" class="">Warning: ROOTDIR was not specified ; try using a local copy of MITgcm found at "../../.."</div><div style="margin: 0px;" class="">  getting OPTFILE information:</div><div style="margin: 0px;" class="">    using OPTFILE="../../../tools/build_options/linux_amd64_gfortran"</div><div style="margin: 0px;" class="">../../../tools/build_options/linux_amd64_gfortran: line 131: nf-config: command not found</div><div style="margin: 0px;" class="">  getting AD_OPTFILE information:</div><div style="margin: 0px;" class="">    using AD_OPTFILE="../../../tools/adjoint_options/adjoint_default"</div><div style="margin: 0px;" class="">  check Fortran Compiler...  fail to compile  (set FC_CHECK=0/5)</div><div style="margin: 0px;" class="">  check makedepend (local: 0, system: 1, 1)</div><div style="margin: 0px;" class="">ERROR: test: 'make -f Makefile genmake_hello.for' Failed</div><div style="margin: 0px;" class="">       see simple makefile: 'Makefile' (left here)</div><div style="margin: 0px;" class="">  Please check (1) your 'make' command, (2) your 'ln -s' command</div><div style="margin: 0px;" class="">           and (3) the allowed sufix '.F' and '.for' in makefile</div><div style="margin: 0px;" class="">  or contact the <<a href="mailto:MITgcm-support@mitgcm.org" class="">MITgcm-support@mitgcm.org</a>> list for help.</div><br class="">Any advice you have for me is very much appreciated!</div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">Best regards,</div><div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">Sara</div><br class=""></div><div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div id="Signature" class=""><div class=""><div class=""></div><div class=""></div><div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class="">Sara G. Miller (she/her/hers)<div class="">PhD Student | School of Earth and Atmospheric Sciences</div><div class=""><span style="font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important;" class="">Georgia Institute of Technology</span><br class=""></div></div></div></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">MITgcm-support mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="mailto:MITgcm-support@mitgcm.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">MITgcm-support@mitgcm.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://urldefense.us/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!a-zKtWGfJ8ulC-TkgAPmPj3Hc1y8Mh_DjQCYvu055nm0gtgp_2lnGfIo-Snx74494t96sHlvWVM$" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://urldefense.us/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!a-zKtWGfJ8ulC-TkgAPmPj3Hc1y8Mh_DjQCYvu055nm0gtgp_2lnGfIo-Snx74494t96sHlvWVM$</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span></div></blockquote></div><br class=""></div></div></div></body></html>