[ncl-install] problem about installing ncl on macos
Hu, Zeyuan
zeyuan_hu at fas.harvard.edu
Wed Sep 26 11:49:49 MDT 2018
Hi Kevin,
The output are:
ls -l /usr/local/lib/libgfortran*
-rwxr-xr-x 1 root wheel 2798988 May 19 17:04 /usr/local/lib/libgfortran.5.dylib
-rw-r--r-- 1 root wheel 11332840 May 19 17:04 /usr/local/lib/libgfortran.a
lrwxr-xr-x 1 root wheel 19 May 19 17:04 /usr/local/lib/libgfortran.dylib -> libgfortran.5.dylib
-rwxr-xr-x 1 root wheel 993 May 19 17:04 /usr/local/lib/libgfortran.la
-rw-r--r-- 1 root wheel 198 May 19 17:04 /usr/local/lib/libgfortran.spec
You are right. I have installed the gcc-7.3-bin.tar.gz, and I can open NCL now.
Thanks very much,
Zeyuan
________________________________
From: Kevin Hallock <hallock at ucar.edu>
Sent: Wednesday, September 26, 2018 12:46:36 PM
To: Hu, Zeyuan
Cc: ncl-install at ucar.edu
Subject: Re: [ncl-install] problem about installing ncl on macos
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/<https://urldefense.proofpoint.com/v2/url?u=http-3A__hpc.sourceforge.net_&d=DwMFaQ&c=WO-RGvefibhHBZq3fL85hQ&r=iwgEBM7WPx-PlOs7Uu5-hLG2UwuhKY6bHhTcCn7Zjm8&m=MITFRx441VpuKtWJugRZBNT0ziWgRkxkfP4rlrtubqI&s=WBXwIX2sPA21LJypyuBdBq5RgTMVWovm4HiLlQ8k-bQ&e=>
I hope this helps,
Kevin
On Sep 26, 2018, at 7:20 AM, Hu, Zeyuan via ncl-install <ncl-install at ucar.edu<mailto:ncl-install at ucar.edu>> wrote:
Hello,
I downloaded ncl_ncarg-6.5.0-MacOS_10.13_64bit_gnu730.tar.gz<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.earthsystemgrid.org_dataset_ncl.650.dap_file_ncl-5Fncarg-2D6.5.0-2DMacOS-5F10.13-5F64bit-5Fgnu730.tar.gz&d=DwMFaQ&c=WO-RGvefibhHBZq3fL85hQ&r=iwgEBM7WPx-PlOs7Uu5-hLG2UwuhKY6bHhTcCn7Zjm8&m=MITFRx441VpuKtWJugRZBNT0ziWgRkxkfP4rlrtubqI&s=uftG9WE1DuR4s2ipnFG5PUUWFXWDs1ddIbR5FG8qXl4&e=>, 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<https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dinstall&d=DwMFaQ&c=WO-RGvefibhHBZq3fL85hQ&r=iwgEBM7WPx-PlOs7Uu5-hLG2UwuhKY6bHhTcCn7Zjm8&m=MITFRx441VpuKtWJugRZBNT0ziWgRkxkfP4rlrtubqI&s=xKLcpcymTDeOulhmzUyxwb5k48CSuKNLU3pHUVyd4rI&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20180926/2977db64/attachment-0001.html>
More information about the ncl-install
mailing list