[ncl-install] Image not found libgfortran 4

Esteban Abellan esteban.abellan at weatherintelligence.global
Tue Nov 28 15:23:00 MST 2017


Dear ncl team,


I'm trying to install ncl in my laptop following step by step. When I did
the test (ng4ex xy01n -clean() I got the same error as when I type 'ncl
-V'. It seems to be related with the libgfortran.3.dylib. I listed
/usr/local/lib/gf* and I found all these files:

libgfortran.4.dylib

libgfortran.a

libgfortran.dylib

libgfortran.la

libgfortran.spec


The MacOS binary that I downloaded from the ESG is
'ncl_ncarg-6.4.0-MacOS__10.12__64bit_nodap_gnu530.tar.gz'.


This is what I get when I type the commands that you recommend to figure
out where the error comes:

esteban at Estebans-MBP:*~*$ which ncl

/usr/local/ncl-6.4.0/bin/ncl

esteban at Estebans-MBP:*~*$ ncl -V

dyld: Library not loaded: /usr/local/lib/libgfortran.3.dylib

  Referenced from: /usr/local/ncl-6.4.0/bin/ncl

  Reason: image not found

Abort trap: 6

esteban at Estebans-MBP:*~*$ otool -L `which ncl`

/usr/local/ncl-6.4.0/bin/ncl:

/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version
7.0.0)

/opt/X11/lib/libfontconfig.1.dylib (compatibility version 11.0.0, current
version 11.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)

/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.21.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
1238.0.0)

/usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)

esteban at Estebans-MBP:*~*$ env | grep NCARG

NCARG_ROOT=/usr/local/ncl-6.4.0

esteban at Estebans-MBP:*~*$ which gcc

/usr/local/bin/gcc

esteban at Estebans-MBP:*~*$ which gfortran

/usr/local/bin/gfortran

esteban at Estebans-MBP:*~*$ 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.


esteban at Estebans-MBP:*~*$ 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.


esteban at Estebans-MBP:*~*$




Also, I echo some other commands and this is what I get:

esteban at Estebans-MBP:*~*$ ls -l /usr/local/lib | grep gcc

drwxr-xr-x   3 root  wheel    96B  4 Sep  2016 gcc/

-rw-r--r--   1 root  wheel    15K  7 Jun 10:27 libgcc_ext.10.4.dylib

-rw-r--r--   1 root  wheel    15K  7 Jun 10:27 libgcc_ext.10.5.dylib

-rw-r--r--   1 root  wheel   245K  7 Jun 10:27 libgcc_s.1.dylib

lrwxr-xr-x   1 root  wheel    16B  7 Jun 10:27 libgcc_s_ppc64.1.dylib@ ->
libgcc_s.1.dylib

lrwxr-xr-x   1 root  wheel    16B  7 Jun 10:27 libgcc_s_x86_64.1.dylib@ ->
libgcc_s.1.dylib

esteban at Estebans-MBP:*~*$ ls -l /usr/local/lib | grep gfortran

-rwxr-xr-x   1 root  wheel   2.0M  7 Jun 10:27 libgfortran.4.dylib*

-rw-r--r--   1 root  wheel   9.9M  7 Jun 10:27 libgfortran.a

lrwxr-xr-x   1 root  wheel    19B  7 Jun 10:27 libgfortran.dylib@ ->
libgfortran.4.dylib

-rwxr-xr-x   1 root  wheel   989B  7 Jun 10:27 libgfortran.la*

-rw-r--r--   1 root  wheel   198B  7 Jun 10:27 libgfortran.spec

esteban at Estebans-MBP:*~*$ otool -L $(which ncl)

/usr/local/ncl-6.4.0/bin/ncl:

/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version
7.0.0)

/opt/X11/lib/libfontconfig.1.dylib (compatibility version 11.0.0, current
version 11.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)

/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.21.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
1238.0.0)

/usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)

esteban at Estebans-MBP:*~*$



THANK YOU SO MUCH.


Esteban
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20171129/9b7aa2ce/attachment-0001.html>


More information about the ncl-install mailing list