[ncl-install] Image not found libgfortran 4

Esteban Abellan esteban.abellan at weatherintelligence.global
Wed Nov 29 18:18:51 MST 2017


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 --version
>
> gcc (GCC) 6.3.0
>
> Copyright (C) 2016 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:*~*$ gfortran --version
>
> GNU Fortran (GCC) 6.3.0
>
> Copyright (C) 2016 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.
>
> 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 OPEN
>
> fatal:Workstation with PID#8 is not open
>
> fatal:Unable to open Workstation-Can't Create
>
> fatal:Unable to access object with id:-4
>
> fatal:_NhlCreate:Invalid Parent id #-4
>
> fatal:NhlDraw: Invalid Layer Id: -4
>
> fatal:Unable to update Workstation with PID#-4
>
> fatal:Unable to clear Workstation with PID#-4
>
> fatal:["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 weatherintelligence.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.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
>>
>> _______________________________________________
>> 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/342507f5/attachment-0001.html>


More information about the ncl-install mailing list