[ncl-install] Image not found libgfortran 4

Yuanfu Xie yuanfu_xie at yahoo.com
Thu Nov 30 09:14:00 MST 2017


Kevin,
I have XQuartz-2.7.11 on my system. Following your suggestion and Esteban's email. I restarted my system without explicitly specifying DISPLAY. It worked. Thank you very much.
Yuanfu 

    On Wednesday, November 29, 2017 6:19 PM, Esteban Abellan <esteban.abellan at weatherintelligence.global> wrote:
 

 Hi Kevin,
Now it's working! Thank you so much for your help.
Esteban


On Thu, Nov 30, 2017 at 9:48 AM, Kevin Hallock <hallock at ucar.edu> wrote:

Hi Esteban,
Do you have XQuartz installed on your machine? If so, which version? Is it possible that you recently installed XQuartz and have not rebooted your machine since then?
When I run “echo $DISPLAY” on my Mac, I get this:$ echo $DISPLAY     
/private/tmp/com.apple. launchd.8leDMy4dtU/org. macosforge.xquartz:0
With that $DISPLAY value set, I am able to run “ng4ex xy01n -clean” without issue. However, if I explicitly set “DISPLAY=:0.0” and then run “ng4ex xy01n -clean”, I get the same error that you saw below.
My version of XQuartz is:XQuartz 2.7.11 (xorg-server 1.18.4)
Kevin

On Nov 28, 2017, at 9:08 PM, Esteban Abellan <esteban.abellan@ weatherintelligence.global> wrote:
Thank you so much for your prompt reply. Now the versions are ok:
esteban at Estebans-MBP:~$ gcc --versiongcc (GCC) 6.3.0Copyright (C) 2016 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
esteban at Estebans-MBP:~$ gfortran --versionGNU Fortran (GCC) 6.3.0Copyright (C) 2016 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
However, now I'm getting this: 
esteban at Estebans-MBP:~$ ng4ex xy01n -clean
NCAR Graphics NCL Example <xy01n>
  Copying xy01n.ncl  Copying xy01.res
Running NCL... Copyright (C) 1995-2017 - All Rights Reserved University Corporation for Atmospheric Research NCAR Command Language Version 6.4.0 The use of this software is governed by a License Agreement. See http://www.ncl.ucar.edu/ for more details. GKS ERROR NUMBER -208 ISSUED FROM SUBROUTINE GOPWK : --X driver error: DISPLAY environment variable not set GKS ERROR NUMBER   25 ISSUED FROM SUBROUTINE GESC  : --SPECIFIED WORKSTATION IS NOT OPENfatal:Workstation with PID#8 is not openfatal:Unable to open Workstation-Can't Createfatal:Unable to access object with id:-4fatal:_NhlCreate:Invalid Parent id #-4fatal:NhlDraw: Invalid Layer Id: -4fatal:Unable to update Workstation with PID#-4fatal:Unable to clear Workstation with PID#-4fatal:["Execute.c":8638]: Execute: Error occurred at or near line 137

Finished running 'ncl < xy01n.ncl'...

It seems that it might be related to the DISPLAY environment variable. This is what I get:
esteban at Estebans-MBP:~$ echo $DISPLAY
:0.0
I'm installing NCL in my local machine. Thank you.
On Wed, Nov 29, 2017 at 1:22 PM, Kevin Hallock <hallock at ucar.edu> wrote:

Hi Esteban,
I’m sorry for the inconvenience.
The version of gcc/gfortran required for the Mac build of NCL is 6.3, which is unfortunately a bit hidden on the HPC SourceForge site that our installation procedures link to. It looks like you have gcc/gfortran version 7.1 that is available directly from their home page.
Here’s a direct link to gcc 6.3: https://sourceforge.net/p rojects/hpc/files/hpc/gcc/gcc- 6.3-bin.tar.gz/download
Kevin

On Nov 28, 2017, at 3:23 PM, Esteban Abellan <esteban.abellan at weatherintell igence.global> wrote:
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.dyliblibgfortran.alibgfortran.dyliblibgfortran.lalibgfortran.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/nclesteban at Estebans-MBP:~$ ncl -Vdyld: Library not loaded: /usr/local/lib/libgfortran.3.d ylib  Referenced from: /usr/local/ncl-6.4.0/bin/ncl  Reason: image not foundAbort trap: 6esteban 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.d ylib (compatibility version 11.0.0, current version 11.2.0)/opt/X11/lib/libXrender.1.dyli b (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.d ylib (compatibility version 4.0.0, current version 4.0.0)/usr/local/lib/libquadmath.0.d ylib (compatibility version 1.0.0, current version 1.0.0)/usr/local/lib/libstdc++.6.dyl ib (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.dyli b (compatibility version 1.0.0, current version 1.0.0)esteban at Estebans-MBP:~$ env | grep NCARGNCARG_ROOT=/usr/local/ncl-6.4. 0esteban at Estebans-MBP:~$ which gcc/usr/local/bin/gccesteban at Estebans-MBP:~$ which gfortran/usr/local/bin/gfortranesteban at Estebans-MBP:~$ gfortran --versionGNU Fortran (GCC) 7.1.0Copyright (C) 2017 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
esteban at Estebans-MBP:~$ gcc --versiongcc (GCC) 7.1.0Copyright (C) 2017 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; 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 gccdrwxr-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.dyliblrwxr-xr-x   1 root  wheel    16B  7 Jun 10:27 libgcc_s_ppc64.1.dylib@ -> libgcc_s.1.dyliblrwxr-xr-x   1 root  wheel    16B  7 Jun 10:27 libgcc_s_x86_64.1.dylib@ -> libgcc_s.1.dylibesteban 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.alrwxr-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.specesteban 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.d ylib (compatibility version 11.0.0, current version 11.2.0) /opt/X11/lib/libXrender.1.dyli b (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.d ylib (compatibility version 4.0.0, current version 4.0.0) /usr/local/lib/libquadmath.0.d ylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/lib/libstdc++.6.dyl ib (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.dyli b (compatibility version 1.0.0, current version 1.0.0)esteban at Estebans-MBP:~$ 

THANK YOU SO MUCH.
Esteban
______________________________ _________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailma n/listinfo/ncl-install








_______________________________________________
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/20171130/2304418e/attachment-0001.html>


More information about the ncl-install mailing list