[ncl-install] NCL installation on MacBook Pro

Mary Haley haley at ucar.edu
Mon Jan 9 10:11:43 MST 2017


Rupert,

I think you do have a libgfortran.3.dylib file, but that it is not in
/usr/local/lib, because you installed the MacPorts version of the compilers
which puts things in /opt.

The easiest solution is to install the HPC version of the compilers, which
will put things in /usr/local:

For information, see:

http://www.ncl.ucar.edu/Download/macosx.shtml#InstallCompilers

Or, you can look for the MacPort version of libgfortran.3.dylib:

find /opt/local/lib -name libgfortran.3.dylib -print

If you see it in a directory like /opt/local/lib/gcc49, then you can try
setting the following environment variable:

setenv DYLD_FALLBACK_LIBRARY_PATH /opt/local/lib/gcc49

--Mary





On Fri, Jan 6, 2017 at 6:37 AM, Rupert Klein <rupert.klein at math.fu-berlin.de
> wrote:

> Hi,
>
> I am working with
>
> ncl_ncarg-6.3.0.MacOS_10.10_64bit_nodap_gcc492.tar.gz
>
> and I am running into the  gfortran.3.dylib  and  libgomp.dylib
>
> issues that you mention on your install hints pages.
>
> Could you provide a hint as to how I can get to a functioning
> setup efficiently?
>
> Thanks very much,
>
> Rupert
>
> -----------------------------------------------------------------
>
> Here is the requested trouble-shooting information:
>
> which ncl
> /opt/local/ncl-6.3.0/bin/ncl
>
> ncl -V
> dyld: Library not loaded: /usr/local/lib/libgfortran.3.dylib
>   Referenced from: /opt/local/ncl-6.3.0/bin/ncl
>   Reason: image not found
> Trace/BPT trap: 5
>
> otool -L 'which ncl'
> /opt/local/libexec/llvm-3.9/bin/llvm-objdump: 'which ncl': No such file
> or directory
> fatal error: otool: internal objdump command failed
>
> otool -L `which ncl`
> /opt/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)
>
> env | grep NCARG
> NCARG_ROOT=/opt/local/ncl-6.3.0
>
> which gcc
> /opt/local/bin/gcc
>
> which gfortran
> /opt/local/bin/gfortran
>
> gfortran --version
> GNU Fortran (MacPorts gcc49 4.9.4_0) 4.9.4
> Copyright (C) 2015 Free Software Foundation, Inc.
>
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
>
>
> gcc --version
> gcc (MacPorts gcc49 4.9.4_0) 4.9.4
> Copyright (C) 2015 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.
>
>
>
> _______________________________________________
> 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/20170109/fe02f9ab/attachment.html 


More information about the ncl-install mailing list