Re: does not locate libgfortran.3.dylib on mac

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 30 2013 - 10:38:53 MST

Sangeeta,

The issue is that your DISPLAY environment variable is not set for some reason. This is not an NCL issue.

In the past, we recommended that people set DISPLAY as follows:

cshrc/tcshrc:

  setenv DISPLAY :0.0

bash/ksh:

export DISPLAY=:0.0

However, this should no longer be required as DISPLAY should be set for you automatically.

Where are you trying to run ncl from? On a Mac, I use the Terminal application, and it sets my DISPLAY for me. It looks something like this:

printenv DISPLAY
/tmp/launch-mZpn3z/org.macosforge.xquartz:0

Note that MacOS uses XQuartz for its X11 Window display. This application may come already installed on your system, or it should ask you to install it the first time you run any X11 application.
 
Do you have XQuartz installed on your system? Whenever you run an X11 application, XQuartz should start up and appear in your MacOS dock as a black X with an orange circle around it.

--Mary

On Dec 28, 2013, at 10:16 PM, sangeeta maharjan <sangeetamaharjan@gmail.com> wrote:

> Hi Mary,
> I followed your instruction and I found libgfortran.3.dylib at
> /Users/ramsir/Downloads/usr/local/lib.
>
> I have included the same path to DYLD_LIBRARY_PATH in .bash_profile
> file but still
> MacBook-Pro:ncl-6.1.2 root# ng4ex gsun01n -clean
>
> NCAR Graphics NCL Example <gsun01n>
>
> This example was set up to display the output to an
> X11 window.
>
> Copying gsun01n.ncl
>
> Running NCL...
> Copyright (C) 1995-2013 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.1.2
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> No protocol specified
> warning:GKS:GOPWK: --X driver error: DISPLAY environment variable not set
> 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:NhlGetValues:PID #-4 is invalid
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 11832
> in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
>
> fatal:["Execute.c":8126]:Execute: Error occurred at or near line 12
>
>
> Finished running 'ncl < gsun01n'...
>
> Thank You.
> Sangeet Maharjan.
>
> On 12/27/13, Mary Haley <haley@ucar.edu> wrote:
>> Sangeeta,
>>
>> Did you follow the instructions I gave you earlier for trying to find
>> libgfortran.3.dylib using your Spotlight program, rather than "locate"?
>>
>> The Spotlight program is a little magnifying glass at the upper right corner
>> of your screen.
>>
>> Here's the email I sent on December 20:
>>
>> Sangeeta,
>>
>> I recommend using your Mac search application to find this library. It looks
>> like a little magnifying glass, probably in the upper right corner of your
>> screen.
>>
>> Type in "libgfortran.3.dylib" and it should find all instances of this file.
>> Holding down the Command and Option button at the same time while you hover
>> over the filename should give you the path to the file.
>>
>> On my system, I see this library in /opt/local/lib/libgcc and
>> /usr/local/lib
>>
>> What does your gfortran version report?
>>
>> gfortran --version
>>
>> --Mary
>>
>>
>>
>> On Dec 22, 2013, at 1:03 AM, sangeeta maharjan <sangeetamaharjan@gmail.com>
>> wrote:
>>
>>> Hi,
>>> I include the path /Users/ramsir/Downloads/usr/local/lib
>>> (libgfortran.3.dylib) in my .bash_profile but still ncl is not
>>> working.
>>> While executing the command,
>>>
>>> MacBook-Pro:ncl-6.1.2 root# ng4ex gsun01n -clean
>>>
>>> NCAR Graphics NCL Example <gsun01n>
>>>
>>> This example was set up to display the output to an
>>> X11 window.
>>>
>>> Copying gsun01n.ncl
>>>
>>> Running NCL...
>>> Copyright (C) 1995-2013 - All Rights Reserved
>>> University Corporation for Atmospheric Research
>>> NCAR Command Language Version 6.1.2
>>> The use of this software is governed by a License Agreement.
>>> See http://www.ncl.ucar.edu/ for more details.
>>> No protocol specified
>>> warning:GKS:GOPWK: --X driver error: DISPLAY environment variable not set
>>> 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:NhlGetValues:PID #-4 is invalid
>>> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 11832
>>> in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
>>>
>>> fatal:["Execute.c":8126]:Execute: Error occurred at or near line 12
>>>
>>>
>>> Finished running 'ncl < gsun01n'...
>>>
>>> Thanks.
>>> Sangeeta Maharjan.
>>> _______________________________________________
>>> ncl-install mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>>
>>

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Mon Dec 30 10:39:02 2013

This archive was generated by hypermail 2.1.8 : Mon Jan 06 2014 - 13:12:02 MST