[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
Tue Jan 26 09:15:48 MST 2016


Jatin,

You may try upgrading your gcc/gfortran compilers.  My guess is that with
your previous version of MacOS, you installed the gcc/gfortran compilers
from this site:

http://hpc.sourceforge.net

which puts things in /usr/local/.

If you download a new gcc/gfortran (using the ones for El Capitan) from the
above site, it should also install to /usr/local, and it should give you
the /usr/local/libgomp.1.dylib file.

--Mary


On Mon, Jan 25, 2016 at 7:05 PM, Jatin Kala <jatin.kala.jk at gmail.com> wrote:

> Well, this is interesting, on a different mac, on which I have been
> running ncl for more than 6 months now, grepping for LD under env, still
> returns nothing.
>
> Running:
> $ ng4ex gsun01n -clean
>
> gives me the same error:
>
> 134:~ Jatin$ ng4ex gsun01n -clean
> dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib
>   Referenced from: /Users/Jatin/ncl-6.2.1/bin/ncargpath
>   Reason: image not found
> Trace/BPT trap
>
> This is a mac where i installed ncl without any issues around June 2015, i
> updated to OS X El Capitan around September/October 2015 i think, but did
> not re-check my ncl installation....This seems to be related to updating to
> OS X El Capitan?
> Can anyone else reproduce this issue?
>
> Cheers,
> Jatin
>
>
>
> On 26/01/2016 9:51 AM, Jatin Kala wrote:
>
> Thanks Mary, see below, grepping for LD returns nothing.
>
>
> 134:~ jatinkala$ env | grep NCARG
> NCARG_ROOT=/usr/local/ncl-6.3.0
> 134:~ jatinkala$ env | grep LD
> 134:~ jatinkala$ which ncl
> /usr/local/ncl-6.3.0/bin/ncl
> 134:~ jatinkala$ otool -L `which ncl`
> /usr/local/ncl-6.3.0/bin/ncl:
>     /opt/X11/lib/libpng15.15.dylib (compatibility version 34.0.0, current
> version 34.0.0)
>     /opt/X11/lib/libcairo.2.dylib (compatibility version 11203.0.0,
> current version 11203.16.0)
>     /opt/X11/lib/libfontconfig.1.dylib (compatibility version 10.0.0,
> current version 10.0.0)
>     /opt/X11/lib/libpixman-1.0.dylib (compatibility version 33.0.0,
> current version 33.6.0)
>     /opt/X11/lib/libfreetype.6.dylib (compatibility version 18.0.0,
> current version 18.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)
>     /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current
> version 7.0.0)
>     /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.3.dylib (compatibility version 4.0.0,
> current version 4.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.20.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 1213.0.0)
>     /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)
> 134:~ jatinkala$ which gcc
> /usr/bin/gcc
> 134:~ jatinkala$ which gfortran
> /usr/local/bin/gfortran
> 134:~ jatinkala$
>
>
> On Tue, Jan 26, 2016 at 5:46 AM, Mary Haley <haley at ucar.edu> wrote:
>
>> 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
>>>
>>>
>>
>
> --
> Dr. Jatin Kala
> Lecturer in Atmospheric Science
> Murdoch University,Perth, Western Australia
> Tel: (+618) 9360 6297http://www.jatinkala.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20160126/fe3ef778/attachment.html 


More information about the ncl-install mailing list