[ncl-install] Error on Mac when testing NCL

Benedikt Becsi benedikt.becsi at boku.ac.at
Thu Jan 5 04:54:39 MST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170105/3569e439/attachment.html 


More information about the ncl-install mailing list