<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Ashwin,<div class=""><br class=""></div><div class="">In order to build NCL, we usually suggest running “make Everything” in order to build all of the necessary components for a complete NCL installation. Please see our documentation on building from source: <a href="http://www.ncl.ucar.edu/Download/build_from_src.shtml" class="">http://www.ncl.ucar.edu/Download/build_from_src.shtml</a></div><div class=""><br class=""></div><div class="">When you run the Configure script, the second prompt asks for a “Parent installation directory” to install NCL to:</div><div class=""><font face="Menlo" class="">Parent installation directory : /usr/local/ncarg<br class="">Enter Return (default), new directory, or q(quit) > /path/to/install/ncl<br class=""></font></div><div class=""><br class=""></div><div class="">The default is “/usr/local/ncarg”, but you can change this to any directory you want (note that the NCL binary will be installed to the “bin” subdirectory of the directory you specify, so “/usr/local/ncarg/bin” by default or “/path/to/install/ncl/bin” in my example). You can also define the installation directory in the file “config/Site.local”:</div><div class=""><font face="Menlo" class="">#define YmakeRoot /path/to/install/ncl<br class=""></font></div><div class=""><br class=""></div><div class="">Building NCL with “make Everything” should install NCL when it’s done compiling, but if your user account does not have write privileges to the installation directory (this might be a problem for “/usr/local/ncarg”) you may need to run “sudo make install” to complete the installation process.</div><div class=""><br class=""></div><div class="">Additionally, it looks like your build did not run successfully. If you run the command “<font face="Menlo" class="">grep -C3 'error' $logfile</font>” , where $logfile is your make log (“logs” if you use the file you attached to your email), you’ll see several errors related to missing libraries, for example:</div><div class=""><font face="Menlo" class="">gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o tdpackdemo TdpackDemo.o -L../../../.././ncarg2d/src/libncarg -lncarg -L../../../.././ncarg2d/src/libncarg_gks -lncarg_gks -L../../../.././common/src/libncarg_c -lncarg_c -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lbz2 -lpng -lz -L/usr/local/ncarg/lib -L/usr/X11R6/lib64 -lX11 -lXext <br class="">/usr/bin/ld: cannot find -liconv<br class="">/usr/bin/ld: cannot find -lbz2<br class="">collect2: error: ld returned 1 exit status<br class="">Makefile:495: recipe for target 'tdpackdemo' failed<br class="">make[4]: *** [tdpackdemo] Error 1<br class="">make[4]: Leaving directory '/home/winash12/meteorology_project/ncl_ncarg-6.4.0/ncarg2d/src/bin/tdpackdemo'</font></div><div class=""><br class=""></div><div class="">In this case, it appears as though the iconv and bzip2 libraries were not found by the compiler. You will likely need to install these (and other packages) using your system’s package manager (assuming you’re using Linux) or build them from source. If they are already installed, you may need to adjust the “-I”/“include” and “-L”/“lib” directory paths in config/Site.local (these can also be set while running the Configure script).</div><div class=""><br class=""></div><div class="">Finally, out of curiosity is there a reason that you’ve chosen to build NCL from source instead of installing a pre-compiled binary? I’d be glad to continue helping you build NCL from source, but if you do not explicitly need to build it yourself it is often much easier to install an NCL binary tarball.</div><div class=""><br class=""></div><div class="">I hope this helps!</div><div class=""><br class=""></div><div class="">Kevin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 14, 2018, at 10:57 PM, ashwin .D 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 dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hello,<br class=""></div> I am trying to build NCL 6.4 from source. Firstly there seems to be no .configure file and it is replaced by a Configure file. It does compile without any problems but I am not sure where the executables are. I have enclosed the logs obtained by typing make install. <br class=""></div>Do you see any issues ? I do not know how to install under /usr/local/bin. <br class=""><br class=""></div>Regards,<br class=""></div>Ashwin.<br class=""></div>
<span id="cid:4FD8D490-074E-4F0C-80A0-1A035EC1B360@scd.ucar.edu"><logs></span>_______________________________________________<br class="">ncl-install mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br class=""></div></blockquote></div><br class=""></div></body></html>