[ncl-install] gfortran library error
Watkins, William
wwatkins at usgs.gov
Wed Sep 20 13:13:57 MDT 2017
Hi all,
Problem solved, I just needed the binary using the newer GNU compiler
(ncl_ncarg-6.4.0-MacOS_10.11_64bit_nodap_gnu610.tar.gz). It might be nice
to update the "Choose and download the right NCL binary for your MacOSX
system" section with a "gcc --version" note or whatever is needed though,
so noobs like myself know which to download.
Cheers,
David
On Wed, Sep 20, 2017 at 1:00 PM, Watkins, William <wwatkins at usgs.gov> wrote:
> Hi all,
>
> I get the following error when I try to run ncl:
>
>> dyld: Library not loaded: /opt/local/lib/libgcc/libgfortran.3.dylib
>>
>> Referenced from: /usr/local/ncl-6.4.0/bin/ncl
>>
>> Reason: image not found
>>
>> Trace/BPT trap: 5
>>
> I have read the frequent install issues page at https://www.ncl.ucar.edu/
> Download/macosx.shtml, and followed the instructions to install
> gcc/gfortran as recommended for this error, but to no avail. I am running
> OSX 10.11.6 El Capitan on a Mac Pro, and I used
> the ncl_ncarg-6.4.0-MacOS_10.11_64bit_nodap_gnu540.tar.gz binary.
>
> Output of the requested terminal commands:
>
>> datascienceuser at IGSARMEWWSDLB2:*~*$ which ncl
>>
>> /usr/local/ncl-6.4.0/bin/ncl
>>
>> datascienceuser at IGSARMEWWSDLB2:*~*$ ncl -V
>>
>> dyld: Library not loaded: /opt/local/lib/libgcc/libgfortran.3.dylib
>>
>> Referenced from: /usr/local/ncl-6.4.0/bin/ncl
>>
>> Reason: image not found
>>
>> Trace/BPT trap: 5
>>
>> datascienceuser at IGSARMEWWSDLB2:*~*$ otool -L `which ncl`
>>
>> /usr/local/ncl-6.4.0/bin/ncl:
>>
>> /usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version
>> 8.0.0)
>>
>> /opt/X11/lib/libcairo.2.dylib (compatibility version 11403.0.0, current
>> version 11403.6.0)
>>
>> /opt/X11/lib/libfontconfig.1.dylib (compatibility version 11.0.0,
>> current version 11.2.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)
>>
>> /opt/local/lib/libgcc/libgfortran.3.dylib (compatibility version 4.0.0,
>> current version 4.0.0)
>>
>> /opt/local/lib/libgcc/libquadmath.0.dylib (compatibility version 1.0.0,
>> current version 1.0.0)
>>
>> /opt/local/lib/libgcc/libstdc++.6.dylib (compatibility version 7.0.0,
>> current version 7.21.0)
>>
>> /opt/local/lib/libgcc/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)
>>
>> /opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version 1.0.0,
>> current version 1.0.0)
>>
>> datascienceuser at IGSARMEWWSDLB2:*~*$ env | grep NCARG
>>
>> NCARG_ROOT=/usr/local/ncl-6.4.0
>>
>> datascienceuser at IGSARMEWWSDLB2:*~*$ which gcc
>>
>> /usr/local/bin/gcc
>>
>> datascienceuser at IGSARMEWWSDLB2:*~*$ which gfortran
>>
>> /usr/local/bin/gfortran
>>
>> datascienceuser at IGSARMEWWSDLB2:*~*$ gfortran --version
>>
>> GNU Fortran (GCC) 7.1.0
>>
>> Copyright (C) 2017 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.
>>
>>
>> datascienceuser at IGSARMEWWSDLB2:*~*$ gcc --version
>>
>> gcc (GCC) 7.1.0
>>
>> Copyright (C) 2017 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,
> David Watkins
>
> --
> *David Watkins*
> USGS Office of Water Information
> Data Science Team
> wwatkins at usgs.gov | 608-821-3895
>
>
--
*David Watkins*
USGS Office of Water Information
Data Science Team
wwatkins at usgs.gov | 608-821-3895
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170920/084a846d/attachment-0001.html>
More information about the ncl-install
mailing list