<div dir="ltr"><div dir="ltr">Tao, I should have said that it is better to install a more recent NCL build than the precompiled binaries. This is because you get the advantage of improvements and bug fixes in lower level libraries that are used by NCL.<div><br></div><div>If you can easily install NCL through Conda or Macports, that would be the preferred solution. Installing an older GCC version is not optimal, but it might provide a quick fix if you have trouble with these package managers.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 20, 2020 at 12:54 PM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Tao, the problem is that you need an older version of the gfortran runtime library. NCL's precompiled binaries were made for gfortran 7, not gfortran 8. You could try installing gfortran 7 and see if that fixes the NCL binary version that you have.</div><div><br></div><div>The NCL website currently recommends the conda method for installing NCL. Please try that method if you need to. You can also install NCL from Macports, using the port name "ncarg". Both of these methods require some extra work.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 20, 2020 at 1:11 AM Tao Zhang via ncl-install <<a href="mailto:ncl-install@mailman.ucar.edu" target="_blank">ncl-install@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I have used the second method "Installing NCL from a precompiled binary" <br>
to install NCL-6.6.2 in<br>
<br>
my Macbook pro Majave (10.14.6).<br>
<br>
When I run the ncl command, I get the error "dyld: Library not loaded: <br>
/usr/local/lib/libgfortran.4.dylib". see below.<br>
<br>
There is no "libgfortran.4.dylib" in /usr/local/lib/, but there is <br>
"libgfortran.5.dylib" in /usr/local/gfortran/lib, see below.<br>
<br>
I have installed successfully gfortran 8.2 and it works well in my <br>
Macbook pro.<br>
<br>
So I am not sure what's the problem and how to fix it?<br>
<br>
Thanks<br>
<br>
Tao<br>
<br>
------------<br>
<br>
/Users/tzhang/Disk> ncl<br>
dyld: Library not loaded: /usr/local/lib/libgfortran.4.dylib<br>
Referenced from: /usr/local/ncl-6.6.2/bin/ncl<br>
Reason: image not found<br>
Abort<br>
<br>
-------<br>
<br>
/Users/tzhang/Disk> which gcc<br>
/usr/bin/gcc<br>
<br>
/Users/tzhang/Disk> which gfortran<br>
/usr/local/bin/gfortran<br>
<br>
/Users/tzhang/Disk> gcc --version<br>
Configured with: --prefix=/Library/Developer/CommandLineTools/usr <br>
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 <br>
<br>
Apple LLVM version 10.0.1 (clang-1001.0.46.4)<br>
Target: x86_64-apple-darwin18.7.0<br>
Thread model: posix<br>
InstalledDir: /Library/Developer/CommandLineTools/usr/bin<br>
<br>
/Users/tzhang/Disk> gfortran --version<br>
GNU Fortran (GCC) 8.2.0<br>
Copyright (C) 2018 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions. There is NO<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
<br>
----------------------<br>
<br>
/usr/local/lib> ls<br>
<a href="http://libh5bzip2.la" rel="noreferrer" target="_blank">libh5bzip2.la</a>* libhdf5_hl.8.dylib* <a href="http://libnetcdf.la" rel="noreferrer" target="_blank">libnetcdf.la</a>* <br>
librtmp.dylib* libz.1.dylib@<br>
libh5bzip2.so* libhdf5_hl.a libnetcdf.settings <br>
libsz.2.0.0.dylib* libz.a<br>
libhdf5.8.dylib* libhdf5_hl.dylib@ libnetcdff.7.dylib* <br>
libsz.2.dylib@ libz.dylib@<br>
libhdf5.a <a href="http://libhdf5_hl.la" rel="noreferrer" target="_blank">libhdf5_hl.la</a>* libnetcdff.a <br>
libsz.a pkgconfig/<br>
libhdf5.dylib@ libnetcdf.18.dylib* libnetcdff.dylib@ <br>
libsz.dylib@<br>
<a href="http://libhdf5.la" rel="noreferrer" target="_blank">libhdf5.la</a>* libnetcdf.a <a href="http://libnetcdff.la" rel="noreferrer" target="_blank">libnetcdff.la</a>* <a href="http://libsz.la" rel="noreferrer" target="_blank">libsz.la</a>*<br>
libhdf5.settings libnetcdf.dylib@ libnetcdff.settings <br>
libz.1.2.8.dylib*<br>
<br>
--------<br>
<br>
/usr/local/gfortran/lib> ls<br>
gcc/ libgcc_s_ppc64.1.dylib@ <br>
<a href="http://libitm.la" rel="noreferrer" target="_blank">libitm.la</a>* libssp_nonshared.a<br>
libasan.5.dylib* libgcc_s_x86_64.1.dylib@ <br>
libitm.spec <a href="http://libssp_nonshared.la" rel="noreferrer" target="_blank">libssp_nonshared.la</a>*<br>
libasan.dylib@ libgfortran.5.dylib* <br>
libobjc-gnu.4.dylib* libstdc++.6.dylib*<br>
<a href="http://libasan.la" rel="noreferrer" target="_blank">libasan.la</a>* libgfortran.a <br>
libobjc-gnu.a libstdc++.a<br>
libasan_preinit.o libgfortran.dylib@ <br>
libobjc-gnu.dylib@ libstdc++.a-gdb.py<br>
libatomic.1.dylib* <a href="http://libgfortran.la" rel="noreferrer" target="_blank">libgfortran.la</a>* <br>
<a href="http://libobjc-gnu.la" rel="noreferrer" target="_blank">libobjc-gnu.la</a>* libstdc++.dylib@<br>
libatomic.a libgfortran.spec <br>
libquadmath.0.dylib* libstdc++.la*<br>
libatomic.dylib@ libgomp.1.dylib* <br>
libquadmath.a libstdc++fs.a<br>
<a href="http://libatomic.la" rel="noreferrer" target="_blank">libatomic.la</a>* libgomp.a <br>
libquadmath.dylib@ libstdc++<a href="http://fs.la" rel="noreferrer" target="_blank">fs.la</a>*<br>
<a href="http://libcc1.0.so" rel="noreferrer" target="_blank">libcc1.0.so</a>* libgomp.dylib@ <br>
<a href="http://libquadmath.la" rel="noreferrer" target="_blank">libquadmath.la</a>* libsupc++.a<br>
<a href="http://libcc1.la" rel="noreferrer" target="_blank">libcc1.la</a>* <a href="http://libgomp.la" rel="noreferrer" target="_blank">libgomp.la</a>* <br>
libsanitizer.spec libsupc++.la*<br>
libcc1.so@ libgomp.spec <br>
libssp.0.dylib* libubsan.1.dylib*<br>
libgcc_ext.10.4.dylib libitm.1.dylib* <br>
libssp.a libubsan.dylib@<br>
libgcc_ext.10.5.dylib libitm.a libssp.dylib@ <br>
<a href="http://libubsan.la" rel="noreferrer" target="_blank">libubsan.la</a>*<br>
libgcc_s.1.dylib libitm.dylib@ <a href="http://libssp.la" rel="noreferrer" target="_blank">libssp.la</a>*<br></blockquote></div></div>
</blockquote></div></div>