[ncl-install] getting dyld LIbrary not loaded error even after installing latest gcc5 and exporting DYLD_FALLBACK_LIBRARY_PATH
Mary Haley
haley at ucar.edu
Mon Jan 25 14:46:25 MST 2016
Jatin,
I think there is something wrong with your environment. In general, you
shouldn't be needing to create softlinks or set DYLD_XXXXX.
What does the following report on your system:
env | grep NCARG
env | grep LD
which ncl
otool -L `which ncl`
which gcc
which gfortran
--Mary
On Sun, Jan 24, 2016 at 6:38 PM, Jatin Kala <jatin.kala.jk at gmail.com> wrote:
> Hi,
> I am trying to install ncl on a new mac:
> OX X El Capitan, 10.11.3
>
> The pre-compiled binary is:
> ncl_ncarg-6.3.0.MacOS_10.10_64bit_nodap_gcc492.tar.gz
>
> ncl -v works:
> $ ncl -v
> Unknown option `-v'
> Copyright (C) 1995-2015 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.3.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> ncl 0>
>
>
> but the ng4ex command fails, even though i have set
> DYLD_FALLBACK_LIBRARY_PATH to gcc5:
>
> $ echo $DYLD_FALLBACK_LIBRARY_PATH
> /opt/local/lib/gcc5
> $ ls -l /opt/local/lib/gcc5/libgomp.1.dylib
> lrwxr-xr-x 1 root admin 37 22 Jan 17:38
> /opt/local/lib/gcc5/libgomp.1.dylib -> /opt/local/lib/libgcc/libgomp.1.dylib
> $ ng4ex gsun01n -clean
> dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib
> Referenced from: /usr/local/ncl-6.3.0/bin/ncargpath
> Reason: image not found
> Trace/BPT trap
>
> contents of .profile:
> $ cat ~/.profile
>
> # MacPorts Installer addition on 2016-01-22_at_14:17:32: adding an
> appropriate PATH variable for use with MacPorts.
> export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
> # Finished adapting your PATH environment variable for use with MacPorts.
> export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib/gcc5
> export NCARG_ROOT=/usr/local/ncl-6.3.0
> export PATH=$NCARG_ROOT/bin:$PATH
> export DYLD_LIBRARY_PATH=/usr/local/gfortran/lib/
> export CLICOLOR=1
> export LSCOLORS=ExFxCxDxBxegedabagacad
>
>
> Any ideas?
> Cheers,
> Jatin
>
>
>
>
>
>
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20160125/8174d2fb/attachment.html
More information about the ncl-install
mailing list