<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 Jerry,<div class=""><br class=""></div><div class="">The “ncargf90” script has the Fortran compiler used to build NCL hardcoded into it. Unfortunately, the $FC (Fortran Compiler) environment variable used by the conda build system includes the full path to the compiler from the build environment, and as you discovered this path does not exist on your system.</div><div class=""><br class=""></div><div class="">A workaround that you can use instead is to edit line 26 of the <font face="Menlo" class="">/root/.conda/envs/ncl_stable/bin/ncargf90</font> script to be just:</div><div class=""><font face="Menlo" class="">set fortran = "gfortran"<br class=""></font><br class=""></div><div class="">which will cause ncargf90 to use the first “gfortran” program it can find in your $PATH environment variable.</div><div class=""><br class=""></div><div class="">If you want to use the same compiler that NCL was built with (“x86_64-conda_cos6-linux-gnu-gfortran”), you can install the gfortran package on conda:</div><div class=""><font face="Menlo" class="">conda install -n ncl_stable -c conda-forge gfortran_linux-64 # or gfortran_osx-64 on Mac</font><br class=""><br class="">and then edit line 26 of the ncargf90 script to be:</div><div class=""><span style="font-family: Menlo;" class="">set fortran</span><span style="font-family: Menlo;" class=""> </span><span style="font-family: Menlo;" class="">= </span><span style="font-family: Menlo;" class="">"</span><font face="Menlo" class="">/root/.conda/envs/ncl_stable/bin/x86_64-conda_cos6-linux-gnu-gfortran</font><span style="font-family: Menlo;" class="">"</span></div><div class=""><br class="">I hope this helps,</div><div class="">Kevin<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 26, 2019, at 5:49 AM, pepe0254--- via ncl-install <<a href="mailto:ncl-install@ucar.edu" class="">ncl-install@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="caret-color: rgb(0, 0, 0); font-family: "Microsoft YaHei UI"; font-size: 14px; 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 class=""></span><div class="">Hi:</div><div class=""><span style="background-color: rgba(0, 0, 0, 0);" class=""> I want to use the ncargf90 command. but it always shows that :</span></div><div class=""><span style="background-color: rgba(0, 0, 0, 0);" class=""> </span><span style="background-color: transparent;" class="">/home/conda/feedstock_root/build_artifacts/ncl_1560882755492/_build_env/bin/x86_64-conda_cos6-linux-gnu-gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -L/root/.conda/envs/ncl_stable/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/root/.conda/envs/ncl_stable/lib -Wl,-rpath-link,/root/.conda/envs/ncl_stable/lib -L/root/.conda/envs/ncl_stable/lib -V -traceback -xHost -O2 -fp-model precise -ftz -align array64byte -convert big_endian -assume byterecl -warn nogeneral -diag-disable 10212 -o hycomnavo hycomnavo.o mod_plot.o mod_xc.o mod_za.o wtime.o arrow1.o bigrid.o bigrd1.o blkin.o bord.o colbar.o colors.o conrec.o contur.o extrct.o filtr1.o fram.o fordate.o getdat.o getdepth.o grdtrns.o horplt.o indxi.o indxj.o legend1.o poisnd.o prtmsk.o psmoo.o sbmerg.o xsecij.o ssort.o zebra.o tracks.o zh.o getdat_nc.o -L/opt/netcdfc/lib -L/opt/netcdff/lib -lnetcdf -lnetcdff libnetcdf.a opngks_psp.o -L/root/.conda/envs/ncl_stable/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2</span></div><div class=""><b class="">/home/conda/feedstock_root/build_artifacts/ncl_1560882755492/_build_env/bin/x86_64-conda_cos6-linux-gnu-gfortran: Command not found. (The path shown here does not exist, it is wired)</b></div><div class=""><span style="font-weight: bold; background-color: rgba(0, 0, 0, 0);" class=""> </span><span style="background-color: rgba(0, 0, 0, 0);" class=""> the system is centos 7 x64, ncl version is 6.6.2 installed with 'conda', I also add the $NCARG_ROOT to the 'path'. I can run the command of NCL such as ncl_convert2nc successfully. could you give me some suggestions? Thanks in advance.</span></div><div class=""><span style="background-color: rgba(0, 0, 0, 0);" class=""><br class=""></span></div><div class=""><span style="background-color: rgba(0, 0, 0, 0);" class=""> ps: I install the NCL using the command 'conda'. I think NCL compiled by gfortran. I try to use ncargf90 to compile the fortran programs while with a netcdf library compiled with intel fortran/c. I think maybe it may be caused by it, but I am not sure.</span></div><div class=""><span style="background-color: rgba(0, 0, 0, 0);" class=""><br class=""></span></div><div class=""><span style="background-color: rgba(0, 0, 0, 0);" class="">Best Regards</span></div><div class=""><span style="background-color: rgba(0, 0, 0, 0);" class="">Jerry.P</span></div></div><div style="caret-color: rgb(0, 0, 0); font-family: "Microsoft YaHei UI"; font-size: 14px; 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=""><br class=""></div><hr size="1" align="left" style="caret-color: rgb(0, 0, 0); font-family: "Microsoft YaHei UI"; font-size: 14px; 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; width: 210px; height: 1px;" class=""><div style="caret-color: rgb(0, 0, 0); font-family: "Microsoft YaHei UI"; font-size: 14px; 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 class=""><div style="margin: 10px; font-family: verdana; font-size: 10pt;" class=""><div class=""><a href="mailto:pepe0254@colorado.edu" class="">pepe0254@colorado.edu</a></div></div></span></div><span style="caret-color: rgb(0, 0, 0); font-family: "Microsoft YaHei UI"; font-size: 14px; 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: "Microsoft YaHei UI"; font-size: 14px; 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: "Microsoft YaHei UI"; font-size: 14px; 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="">ncl-install mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: "Microsoft YaHei UI"; font-size: 14px; 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: "Microsoft YaHei UI"; font-size: 14px; 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="">List instructions, subscriber options, unsubscribe:</span><br style="caret-color: rgb(0, 0, 0); font-family: "Microsoft YaHei UI"; font-size: 14px; 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="http://mailman.ucar.edu/mailman/listinfo/ncl-install" style="font-family: "Microsoft YaHei UI"; font-size: 14px; 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="">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a></div></blockquote></div><br class=""></div></body></html>