[ncl-install] problem about installing ncl on macos

Kevin Hallock hallock at ucar.edu
Wed Sep 26 10:46:36 MDT 2018


Hi Zeyuan,

Could you please try running the following command and reply with the output:
ls -l /usr/local/lib/libgfortran*

I think GCC/Gfortran 8.1.0 includes the library file “libgfortran.5.dylib” instead of the “libgfortran.4.dylib” (from GCC/Gfortran 7.3.0) that this particular build of NCL was compiled with, which is causing the “library not loaded” error at run time.

If that is the case, you will likely need to install the gcc-7.3-bin.tar.gz tarball from this site: http://hpc.sourceforge.net/ <http://hpc.sourceforge.net/>

I hope this helps,
Kevin

> On Sep 26, 2018, at 7:20 AM, Hu, Zeyuan via ncl-install <ncl-install at ucar.edu> wrote:
> 
> Hello,
> 
> I downloaded ncl_ncarg-6.5.0-MacOS_10.13_64bit_gnu730.tar.gz <https://www.earthsystemgrid.org/dataset/ncl.650.dap/file/ncl_ncarg-6.5.0-MacOS_10.13_64bit_gnu730.tar.gz>, but I failed to install it. Please see below for information.
> 
> Zeyuans-MacBook-Pro:lib zeyuanhu$ which ncl
> /usr/local/ncl-6.5.0/bin/ncl
> Zeyuans-MacBook-Pro:lib zeyuanhu$   ncl -V
> dyld: Library not loaded: /usr/local/lib/libgfortran.4.dylib
>   Referenced from: /usr/local/ncl-6.5.0/bin/ncl
>   Reason: image not found
> Abort trap: 6
> Zeyuans-MacBook-Pro:lib zeyuanhu$   otool -L `which ncl`
> /usr/local/ncl-6.5.0/bin/ncl:
> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)
> /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
> /opt/X11/lib/libfontconfig.1.dylib (compatibility version 11.0.0, current version 11.2.0)
> /opt/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
> /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
> /opt/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current version 16.0.0)
> /opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
> /opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
> /usr/local/lib/libgfortran.4.dylib (compatibility version 5.0.0, current version 5.0.0)
> /usr/local/lib/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
> /usr/local/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.24.0)
> /usr/local/lib/libgomp.1.dylib (compatibility version 2.0.0, current version 2.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
> /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
> Zeyuans-MacBook-Pro:lib zeyuanhu$   env | grep NCARG
> NCARG_ROOT=/usr/local/ncl-6.5.0
> Zeyuans-MacBook-Pro:lib zeyuanhu$   which gcc
> /usr/local/bin/gcc
> Zeyuans-MacBook-Pro:lib zeyuanhu$   which gfortran
> /usr/local/bin/gfortran
> Zeyuans-MacBook-Pro:lib zeyuanhu$   gfortran --version
> GNU Fortran (GCC) 8.1.0
> Copyright (C) 2018 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> Zeyuans-MacBook-Pro:lib zeyuanhu$   gcc --version
> gcc (GCC) 8.1.0
> Copyright (C) 2018 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> Thanks very much,
> Zeyuan
> 
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install <http://mailman.ucar.edu/mailman/listinfo/ncl-install>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20180926/99fb0f4e/attachment-0001.html>


More information about the ncl-install mailing list