<div dir="ltr"><div>Hi Kevin,<br></div>                Here you go - an almost flawless installation from source except for this one - -lsz. Is that the szip library ? That is installed under /usr/local/lib. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 19, 2018 at 11:27 AM, ashwin .D <span dir="ltr"><<a href="mailto:winash12@gmail.com" target="_blank">winash12@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Kevin,<br></div>               It seems that I have to head down that route. I have enclosed the latest log files from the install from source code. The inconv errors and bz2 errors are gone but there is an error related to HDF5 and another one related to the cairo. The cairo one is a bit odd because the file ft2build.h is found under /usr/include/freeman2. So while I could like to continue building from source I think I will in parallel also install the binaries and see how that goes.<br><br></div>Regards,<br></div>Ashwin.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 18, 2018 at 11:19 PM, Kevin Hallock <span dir="ltr"><<a href="mailto:hallock@ucar.edu" target="_blank">hallock@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Ashwin,<div><br></div><div>I was able to get the “ncl_ncarg-6.4.0-Debian8.6_64b<wbr>it_gnu492.tar.gz” binary from our <a href="https://www.earthsystemgrid.org/dataset/ncl.640.dap/file.html" target="_blank">download page</a> to work on Ubuntu 16.04 64-bit, although I did have to install several packages using apt:</div><div><font face="Menlo">sudo apt install libxrender1 libfontconfig1 gfortran-4.9</font></div><span><div><br></div><div>I hope this helps!</div><div>Kevin</div></span><div><div class="m_3864085999600450374h5"><div><br><div><blockquote type="cite"><div>On Jan 18, 2018, at 10:35 AM, ashwin .D <<a href="mailto:winash12@gmail.com" target="_blank">winash12@gmail.com</a>> wrote:</div><br class="m_3864085999600450374m_1179783512530612819Apple-interchange-newline"><div><div dir="ltr"><div><div>Hi Kevin,<br></div>              Thanks I will try that and let you know tomorrow. I am running 16.04 LTS 64 bit Ubuntu.<br><br></div>Ashwin.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 18, 2018 at 11:01 PM, Kevin Hallock <span dir="ltr"><<a href="mailto:hallock@ucar.edu" target="_blank">hallock@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Ashwin,</div><div><br></div><div>As Ted mentioned, you will likely have to manually specify “lib” and “include” directories when running the Configure script.</div><div><br></div><div>For example, on my Mac I would enter the following when prompted:</div><div><font face="Menlo">Enter local library search path(s) : /opt/X11/lib<br>Enter Return (default), new directories, or q(quit) > /Users/hallock/dev/external/li<wbr>b /opt/X11/lib    <br><br>Enter local include search path(s) : /opt/X11/include<br>Enter Return (default), new directories, or q(quit) > /Users/hallock/dev/external/in<wbr>clude /Users/hallock/dev/external/in<wbr>clude/freetype2 /opt/X11/include<br></font><br></div><div>In this case, “/Users/hallock/dev/external” is where I have my non-system dependencies (NetCDF, HDF, etc) installed, while “/opt/X11” is where the X11 libraries are installed on my Mac. If you’ve already run the Configure script and would prefer not to rerun it repeatedly, you can directly modify the file “config/Site.local” in the NCL source code. After inputting the above directories when prompted by Configure, the relevant lines of my config/Site.local look like this:</div><div><font face="Menlo">#define LibSearch -L/Users/hallock/dev/external/<wbr>lib -L/opt/X11/lib<br>#define IncSearch -I/Users/hallock/dev/external/<wbr>include -I/Users/hallock/dev/external/<wbr>include/freetype2 -I/opt/X11/include<br></font><br></div><div>These directories are specific to my machine, but hopefully this gives you some idea how to proceed.</div><div><br></div><div>Are you currently running Ubuntu 14.04 64-bit? It’s possible that one of our binary releases is already compatible with Ubuntu 14.04, it just might take some trial and error to get NCL running. If not, which Linux distribution are you using?</div><span class="m_3864085999600450374m_1179783512530612819HOEnZb"><font color="#888888"><div><br></div><div>Kevin</div></font></span><div><div class="m_3864085999600450374m_1179783512530612819h5"><div><br><div><blockquote type="cite"><div>On Jan 17, 2018, at 9:12 AM, Ted Mansell <<a href="mailto:ted.mansell@noaa.gov" target="_blank">ted.mansell@noaa.gov</a>> wrote:</div><br class="m_3864085999600450374m_1179783512530612819m_5697128258289652453Apple-interchange-newline"><div><div style="word-wrap:break-word"><div>It sounds like you may have to manually specify the location of the x libs, or else put sym links in /usr to point to the correct location.</div><div><br></div><div>-- Ted</div><br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><span class="m_3864085999600450374m_1179783512530612819m_5697128258289652453Apple-style-span" style="border-collapse:separate;border-spacing:0px"><div style="word-wrap:break-word"><span class="m_3864085999600450374m_1179783512530612819m_5697128258289652453Apple-style-span" style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><div style="word-wrap:break-word"><span class="m_3864085999600450374m_1179783512530612819m_5697128258289652453Apple-style-span" style="border-collapse:separate;border-spacing:0px"><div style="word-wrap:break-word"><span class="m_3864085999600450374m_1179783512530612819m_5697128258289652453Apple-style-span" style="border-collapse:separate;border-spacing:0px"><div style="word-wrap:break-word"><span class="m_3864085999600450374m_1179783512530612819m_5697128258289652453Apple-style-span" style="border-collapse:separate;border-spacing:0px"><div style="word-wrap:break-word"><span class="m_3864085999600450374m_1179783512530612819m_5697128258289652453Apple-style-span" style="border-collapse:separate;border-spacing:0px"><div style="word-wrap:break-word"><div><div><span style="font-family:monospace;font-size:10px">______________________________<wbr>____________________________</span><br style="font-family:monospace;font-size:10px"><span style="font-family:monospace;font-size:10px">| Edward Mansell <<a href="mailto:ted.mansell@noaa.gov" target="_blank">ted.mansell@noaa.gov</a>></span><br style="font-family:monospace;font-size:10px"><span style="font-family:monospace;font-size:10px">| National Severe Storms Laboratory</span><br style="font-family:monospace;font-size:10px"><span style="font-family:monospace;font-size:10px">|-----------------------------<wbr>------------------------------<wbr>---</span><br style="font-family:monospace;font-size:10px"><span style="font-family:monospace;font-size:10px">| "The contents of this message are mine personally and</span><br style="font-family:monospace;font-size:10px"><span style="font-family:monospace;font-size:10px">| do not reflect any position of the U.S. Government or NOAA."</span><br style="font-family:monospace;font-size:10px"><span style="font-family:monospace;font-size:10px">|-----------------------------<wbr>------------------------------<wbr>---</span><br style="font-family:monospace;font-size:10px"></div></div></div></span></div></span></div></span></div></span></div></span></div></span></div>
</div>
<br><div><blockquote type="cite"><div>On Jan 17, 2018, at 7:48 AM, ashwin .D via ncl-install <<a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a>> wrote:</div><br class="m_3864085999600450374m_1179783512530612819m_5697128258289652453Apple-interchange-newline"><div><div dir="ltr"><div><div><div><div>Hi Kevin,<br></div>              it is still failing. It is looking for local library support i.e. /usr/X11R6/lib64 and it is not finding it in my machine and I am not sure what is local library search here.<br><br></div>Regarding your question on why I am want to build from scratch. Mary Haley probably remembers but way back in 2014 she had to give me a special precompiled binary file for Ubuntu 14.04. So I wanted to avoid that by building my own version.<br><br></div>Regards,<br></div>Ashwin.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 17, 2018 at 3:02 AM, Kevin Hallock <span dir="ltr"><<a href="mailto:hallock@ucar.edu" target="_blank">hallock@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Ashwin,<div><br></div><div>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" target="_blank">http://www.ncl.ucar.ed<wbr>u/Download/build_from_src.shtm<wbr>l</a></div><div><br></div><div>When you run the Configure script, the second prompt asks for a “Parent installation directory” to install NCL to:</div><div><font face="Menlo">Parent installation directory : /usr/local/ncarg<br>Enter Return (default), new directory, or q(quit) > /path/to/install/ncl<br></font></div><div><br></div><div>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><font face="Menlo">#define YmakeRoot /path/to/install/ncl<br></font></div><div><br></div><div>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><br></div><div>Additionally, it looks like your build did not run successfully. If you run the command “<font face="Menlo">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><font face="Menlo">gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp  -O    -o tdpackdemo TdpackDemo.o -L../../../.././ncarg2d/src/li<wbr>bncarg -lncarg -L../../../.././ncarg2d/src/li<wbr>bncarg_gks -lncarg_gks -L../../../.././common/src/lib<wbr>ncarg_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>/usr/bin/ld: cannot find -liconv<br>/usr/bin/ld: cannot find -lbz2<br>collect2: error: ld returned 1 exit status<br>Makefile:495: recipe for target 'tdpackdemo' failed<br>make[4]: *** [tdpackdemo] Error 1<br>make[4]: Leaving directory '/home/winash12/meteorology_pr<wbr>oject/ncl_ncarg-6.4.0/ncarg2d/<wbr>src/bin/tdpackdemo'</font></div><div><br></div><div>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><br></div><div>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><br></div><div>I hope this helps!</div><div><br></div><div>Kevin</div><div><br><div><blockquote type="cite"><div>On Jan 14, 2018, at 10:57 PM, ashwin .D via ncl-install <<a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a>> wrote:</div><br class="m_3864085999600450374m_1179783512530612819m_5697128258289652453m_-970895188171043767Apple-interchange-newline"><div><div dir="ltr"><div><div><div><div>Hello,<br></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></div>Do you see any issues ? I do not know how to install under /usr/local/bin. <br><br></div>Regards,<br></div>Ashwin.<br></div>
<span id="m_3864085999600450374m_1179783512530612819m_5697128258289652453m_-970895188171043767cid:4FD8D490-074E-4F0C-80A0-1A035EC1B360@scd.ucar.edu"><logs></span>________________________<wbr>_______________________<br>ncl-install mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-install</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>
______________________________<wbr>_________________<br>ncl-install mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-install</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>