[ncl-install] Error on Mac when testing NCL
Benedikt Becsi
benedikt.becsi at boku.ac.at
Thu Jan 5 08:40:38 MST 2017
Hi Kwesi,
thanks for your quick response, I created softlinks to different locations of the libstdc++.6.dylib library (three locations where located by "locate library") in your suggested folder (dind't exist btw), but unfortunately I still got the same error message every time:
dyld: Symbol not found: __ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
Referenced from: /usr/local/ncl_6.3.0/bin/ncl
Expected in: /usr/lib/libstdc++.6.dylib
in /usr/local/ncl_6.3.0/bin/ncl
Any other idea?
Thank you very much!
>>> Kwesi Quagraine <starskykwesi at gmail.com> 05.01.17 13.57 Uhr >>>
Hello Benedikt, try these from your terminal;
locate libstdc++.6.dylib library
cd /usr/local/ncl_6.3.0/bin/lib
sudo ln -s /location/given/by/locating/libstdc++.6.dylib .
Kindly remember to put the dot at the end of the last command, it is just soft linking the location of the file to the current directory.
Hope it helps. Cheer!!
On Thu, Jan 5, 2017 at 1:54 PM, Benedikt Becsi <benedikt.becsi at boku.ac.at> wrote:
Dear all,
installing ncl on Mac did work, but when I try to run the test script ng4ex gsun01n -clean I get the following error message:
dyld: Symbol not found: __ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
Referenced from: /usr/local/ncl_6.3.0/bin/ncl
Expected in: /usr/lib/libstdc++.6.dylib
in /usr/local/ncl_6.3.0/bin/ncl
here are the details about my setup environment:
Benedikts-MacBook-Pro:bin ich$ which ncl
/usr/local/ncl_6.3.0/bin/ncl
Benedikts-MacBook-Pro:bin ich$ ncl -V
6.3.0
Benedikts-MacBook-Pro:bin ich$ otool -L `which ncl`
/usr/local/ncl_6.3.0/bin/ncl:
/usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
/System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)
/opt/X11/lib/libfontconfig.1.dylib (compatibility version 10.0.0, current version 10.0.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.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/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.22.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 1226.10.1)
/usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
Benedikts-MacBook-Pro:bin ich$ env | grep NCARG
NCARG_ROOT=/usr/local/ncl_6.3.0
Benedikts-MacBook-Pro:bin ich$ which gcc
/usr/local/Cellar/gcc/6.3.0_1/bin/gcc
Benedikts-MacBook-Pro:bin ich$ which gfortran
/usr/local/Cellar/gcc/6.3.0_1/bin/gfortran
Benedikts-MacBook-Pro:bin ich$ gfortran --version
GNU Fortran (Homebrew GCC 6.3.0_1) 6.3.0
Copyright (C) 2016 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.
Benedikts-MacBook-Pro:bin ich$ gcc --version
gcc (Homebrew GCC 6.3.0_1) 6.3.0
Copyright (C) 2016 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.
I put the following lines into my .bashrc file:
export NCARG_ROOT=/usr/local/ncl_6.3.0
export PATH=$NCARG_ROOT/bin:$PATH
export PATH=/usr/local/Cellar/gcc/6.3.0_1/bin:$PATH
export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/Cellar/gcc/6.3.0_1/lib/gcc/6
There seems to be a problem with my libstdc++.6.dylib library. The file in the /usr/lib/ directory is just an alias and points to a file named libstdc++.6.0.9.dylib. Could it be that ncl has problems with that version of the library?
Thank you very much for the help!
All the best,
Benedikt Becsi
_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
--
Try not to become a man of success but rather a man of value-Albert Einstein
University of Cape Coast|College of Agriculture and Natural Sciences|Department of Physics|
Team Leader|Recycle Up! Ghana|Technology Without Borders|
Other emails: kwesi.quagraine at ucc.edu.gh|kwesi.quagraine at teog.de|
Mobile: +233266173582
Skype: quagraine_cwasi
Twitter: @Pkdilly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170105/616b27c7/attachment-0001.html
More information about the ncl-install
mailing list