<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Jennifer,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Just an FYI: the MacPort version of NCL is not something that we put out, so I&#39;m not sure exactly how it was built.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I do wonder why it was working one day, and then not the next day.  It looks like you do have the shared libraries in /opt/local/lib, for example, &quot;<span style="font-size:12.8px"> /opt/local/lib/libudunits2.0.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">dylib&quot;, so the fact that you are getting this message:</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">dyld: Library not loaded: /opt/local/lib/libudunits2.0.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">dylib</span><br style="font-size:12.8px"></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">is suspicious.  </span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">Was your machine upgraded by any chance, or maybe MacPorts was upgraded?</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">What happens if you type:</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">ls -l /opt/local/lib/libudunits*</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">?  I want to see if perhaps libudunits2.0.dylib is pointing to a stale or empty file.</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">--Mary</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 23, 2017 at 6:59 PM, Haase, Jennifer S <span dir="ltr">&lt;<a href="mailto:jhaase@ucsd.edu" target="_blank">jhaase@ucsd.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear NCAR friends,<br>
<br>
I installed ncarg 6.3.0 on two mac workstations (yosemite 10.10.5) on Feb 9th using macports listed here:<br>
<a href="https://www.macports.org/ports.php?by=name&amp;substr=ncarg" rel="noreferrer" target="_blank">https://www.macports.org/<wbr>ports.php?by=name&amp;substr=ncarg</a><br>
<br>
using the command<br>
sudo port install ncarg<br>
<br>
and ncl worked fine.<br>
<br>
Today it doesn’t work, and I get the error:<br>
<br>
jhaase@chinle:~&gt; ncl<br>
dyld: Library not loaded: /opt/local/lib/libudunits2.0.<wbr>dylib<br>
Referenced from: /opt/local/bin/ncl<br>
Reason: image not found<br>
Trace/BPT trap<br>
jhaase@chinle:~&gt;<br>
<br>
We have tried to reinstall ncarg with macports again today and keep getting the same error message along with others.<br>
<br>
I saw in a previous ncl-install thread Mary’s instructions to provide the following:<br>
<br>
<br>
env | grep NCARG<br>
env | grep LD<br>
which ncl<br>
otool -L `which ncl`<br>
which gcc<br>
which gfortran<br>
<br>
So I have typed those commands and provide the output below:<br>
<br>
jhaase@chinle:~&gt; env | grep NCARG<br>
NCARG_ROOT=/opt/local<br>
jhaase@chinle:~&gt; env | grep LD<br>
LD_LIBRARY_PATH=/opt/local/lib<br>
jhaase@chinle:~&gt; exit<br>
logout<br>
Connection to chinle closed.<br>
jhaase@moenkopi:docs_system&gt; ssh chinle<br>
Password:<br>
Last login: Thu Feb 23 15:42:04 2017 from <a href="http://moenkopi.ucsd.edu" rel="noreferrer" target="_blank">moenkopi.ucsd.edu</a><br>
jhaase@chinle:~&gt;<br>
jhaase@chinle:~&gt;<br>
jhaase@chinle:~&gt;<br>
jhaase@chinle:~&gt; env | grep NCARG<br>
NCARG_ROOT=/opt/local<br>
jhaase@chinle:~&gt; env | grep LD<br>
jhaase@chinle:~&gt; which ncl<br>
/opt/local/bin/ncl<br>
jhaase@chinle:~&gt; otool -L `which ncl`<br>
/opt/local/bin/ncl:<br>
        /opt/local/lib/libnetcdf.11.<wbr>dylib (compatibility version 11.0.0, current version 11.3.0)<br>
        /opt/local/lib/hdfeos5/lib/<wbr>libhe5_hdfeos.0.dylib (compatibility version 1.0.0, current version 1.0.0)<br>
        /opt/local/lib/hdfeos5/lib/<wbr>libGctp.0.dylib (compatibility version 1.0.0, current version 1.0.0)<br>
        /opt/local/lib/libhdfeos.0.<wbr>dylib (compatibility version 1.0.0, current version 1.0.0)<br>
        /opt/local/lib/libmfhdf.0.<wbr>dylib (compatibility version 1.0.0, current version 1.0.0)<br>
        /opt/local/lib/libdf.0.dylib (compatibility version 1.0.0, current version 1.0.0)<br>
        /opt/local/lib/libgdal.20.<wbr>dylib (compatibility version 22.0.0, current version 22.2.0)<br>
        /opt/local/lib/libproj.12.<wbr>dylib (compatibility version 13.0.0, current version 13.0.0)<br>
        /opt/local/lib/libjpeg.9.dylib (compatibility version 12.0.0, current version 12.0.0)<br>
        /opt/local/lib/libudunits2.0.<wbr>dylib (compatibility version 2.0.0, current version 2.0.0)<br>
        /opt/local/lib/libexpat.1.<wbr>dylib (compatibility version 8.0.0, current version 8.2.0)<br>
        /opt/local/lib/libv5d.2.dylib (compatibility version 3.0.0, current version 3.0.0)<br>
        /opt/local/lib/libjasper.4.<wbr>dylib (compatibility version 4.0.0, current version 5.0.0)<br>
        /opt/local/lib/libpng16.16.<wbr>dylib (compatibility version 45.0.0, current version 45.0.0)<br>
        /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)<br>
        /opt/local/lib/libcairo.2.<wbr>dylib (compatibility version 11403.0.0, current version 11403.8.0)<br>
        /opt/local/lib/libfontconfig.<wbr>1.dylib (compatibility version 11.0.0, current version 11.2.0)<br>
        /opt/local/lib/libpixman-1.0.<wbr>dylib (compatibility version 35.0.0, current version 35.0.0)<br>
        /opt/local/lib/libfreetype.6.<wbr>dylib (compatibility version 20.0.0, current version 20.0.0)<br>
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)<br>
        /opt/local/lib/libXrender.1.<wbr>dylib (compatibility version 5.0.0, current version 5.0.0)<br>
        /opt/local/lib/libbz2.1.0.<wbr>dylib (compatibility version 1.0.0, current version 1.0.6)<br>
        /opt/local/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0)<br>
        /opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)<br>
        /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)<br>
        /opt/local/lib/libgcc/<wbr>libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)<br>
        /opt/local/lib/libgcc/libgomp.<wbr>1.dylib (compatibility version 2.0.0, current version 2.0.0)<br>
jhaase@chinle:~&gt; which gcc<br>
/usr/bin/gcc<br>
jhaase@chinle:~&gt; which gfortran<br>
gfortran: Command not found.<br>
jhaase@chinle:~&gt; ncl<br>
dyld: Library not loaded: /opt/local/lib/libudunits2.0.<wbr>dylib<br>
Referenced from: /opt/local/bin/ncl<br>
Reason: image not found<br>
Trace/BPT trap<br>
jhaase@chinle:~&gt; ncl -V<br>
dyld: Library not loaded: /opt/local/lib/libudunits2.0.<wbr>dylib<br>
Referenced from: /opt/local/bin/ncl<br>
Reason: image not found<br>
Trace/BPT trap<br>
jhaase@chinle:~&gt;<br>
<br>
<br>
<br>
Do you have any advice? I was trying to use macports to install ncarg uniformly on several machines so that it would be easier to maintain.<br>
<br>
Note, in case this is useful, I am not entirely clear on the dependency on gfortran.<br>
I understood that if I installed gcc6 using macports it would include gfortran.<br>
However I have different results when looking for gfortran on the two machines, please see below.<br>
I don’t understand why both machines have gcc6 installed but only one has a path to gfortran and it isn’t in the same place as gcc.<br>
This may be an entirely different problem since ncl does not work on both machines.<br>
<br>
Machine 1 kaibab<br>
------------------------<br>
jhaase@kaibab:ro_airborne&gt; which gfortran<br>
/usr/local/bin/gfortran<br>
jhaase@kaibab:ro_airborne&gt; which gcc<br>
/usr/bin/gcc<br>
jhaase@kaibab:ro_airborne&gt; port info gcc6<br>
gcc6 @6.3.0_1 (lang)<br>
Sub-ports:            libgcc<br>
Variants:             universal<br>
Description:          The GNU compiler collection, including front ends for C, C++, Objective-C,<br>
                    Objective-C++, and Fortran.<br>
Homepage:             <a href="http://gcc.gnu.org/" rel="noreferrer" target="_blank">http://gcc.gnu.org/</a><br>
Library Dependencies: cctools, gmp, isl, ld64, libgcc, libiconv, libmpc, mpfr<br>
Runtime Dependencies: gcc_select<br>
Platforms:            darwin<br>
License:              {GPL-3+ Permissive}<br>
Maintainers:          none<br>
<br>
Machine 2 chinle<br>
-------------------------<br>
jhaase@chinle:~&gt; which gfortran<br>
gfortran: Command not found.<br>
jhaase@chinle:~&gt; gcc<br>
clang: error: no input files<br>
jhaase@chinle:~&gt;<br>
jhaase@chinle:~&gt;<br>
jhaase@chinle:~&gt; which gfortran<br>
gfortran: Command not found.<br>
jhaase@chinle:~&gt; which gcc<br>
/usr/bin/gcc<br>
jhaase@chinle:~&gt; port info gcc6<br>
gcc6 @6.3.0_1 (lang)<br>
Sub-ports:            libgcc<br>
Variants:             universal<br>
Description:          The GNU compiler collection, including front ends for C, C++, Objective-C, Objective-C++, and<br>
                    Fortran.<br>
Homepage:             <a href="http://gcc.gnu.org/" rel="noreferrer" target="_blank">http://gcc.gnu.org/</a><br>
Library Dependencies: cctools, gmp, isl, ld64, libgcc, libiconv, libmpc, mpfr<br>
Runtime Dependencies: gcc_select<br>
Platforms:            darwin<br>
License:              {GPL-3+ Permissive}<br>
Maintainers:          none<br>
jhaase@chinle:~&gt;<br>
<br>
<br>
<br>
Thank you,<br>
Jennifer<br>
<br>
------------------------------<wbr>-------------------<br>
Jennifer S Haase<br>
Research Geophysicist<br>
Scripps Institution of Oceanography<br>
University of California, San Diego<br>
9500 Gilman Dr.<br>
La Jolla, CA 92093-0225<br>
<a href="mailto:jhaase@ucsd.edu">jhaase@ucsd.edu</a><br>
Phone: <a href="tel:%2B1-858-534-8771" value="+18585348771">+1-858-534-8771</a><br>
Fax: <a href="tel:%2B1-858-534-9833" value="+18585349833">+1-858-534-9833</a><br>
<br>
&quot;Nature bats last.”<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-install</a><br>
</blockquote></div><br></div>