[ncl-install] mac installation issue

Mary Haley haley at ucar.edu
Thu May 22 11:34:57 MDT 2014


Hi,

In order to set an environment variable so that you don't have to do it every time you log in, you need to do it in one of your .xxxx files in your home directory.

If you type this:

cd
ls -a

You may see files like:

.profile
.bashrc

These type of files get "executed" every time you log in, so this is a good place to set environment variables.

I recommend putting the lines in your .profile file, if you have one. Use a UNIX editor to edit this file and add the needed NCARG_ROOT and PATH lines to the end of the file, the same way you typed them on the UNIX command line:


export NCARG_ROOT=/Users/Crystal/usr/local/ncl-6.2.0
export PATH=$NCARG_ROOT/bin:$PATH

--Mary

On May 21, 2014, at 5:13 PM, Ning Li <ning.li at auckland.ac.nz> wrote:

> Hi Mary,
> I was indeed using an old version of Xquartz. After the update, it worked!!
> But there is one minor thing. It seems my environment variable isn't permanently
> set, which means when I close terminal and open it again, I have to set the path
> again. Otherwise, the computer just can't locate NCL. Is there a quick way of fixing
> this?
> 
> Many thanks.
> 
> Crystal, Ning LI
> 
> PhD candidate
> School of Environment
> The University of Auckland
> 
> ________________________________________
> From: Mary Haley [haley at ucar.edu]
> Sent: Wednesday, 21 May 2014 1:40 p.m.
> To: Ning Li
> Cc: ncl-install at ucar.edu ncl-install at ucar.edu
> Subject: Re: [ncl-install] mac installation issue
> 
> The error implying that your system fontconfig is out-of-date. Did you upgrade your MacOS, by any chance, but not update your other software libraries?
> 
> 
> Also, do you have XQuartz installed on your system?  You want to be sure this is at version 2.7.5 or later. For more information about XQuartz, see:
> 
> http://www.ncl.ucar.edu/Download/macosx.shtml#InstallXQuartz
> 
> —Mary
> 
> On May 20, 2014, at 5:30 PM, Ning Li <ning.li at auckland.ac.nz> wrote:
> 
>> Hi Mary,
>> Thanks for pointing this out! I think I fixed the permission issue but this time NCL returned something else.
>> 
>> Running NCL...
>> dyld: library not loaded: /opt/X11/lib/libfontconfig.1.dylib
>> ...[omitted]
>> Reason: Incompatible library version: ncl requires version 10.0.0 or later, but
>> libfontconfig.1.dylib provides version 8.0.0
>> Trace/BPT trap
>> 
>> ncl failed.
>> 
>> Is the error raised because of an old configuration? How do I update this?
>> 
>> Thanks.
>> 
>> Crystal Ning LI
>> 
>> PhD candidate
>> School of Environment
>> The University of Auckland
>> 
>> ________________________________________
>> From: Mary Haley [haley at ucar.edu]
>> Sent: Wednesday, 21 May 2014 3:17 a.m.
>> To: Ning Li
>> Cc: ncl-install at ucar.edu
>> Subject: Re: [ncl-install] mac installation issue
>> 
>> Dear Crystal,
>> 
>> I believe you have done everything correctly with the environment variables.
>> 
>> The problem you are running into has to do with UNIX file permissions.  When you run "ng4ex", it tries to copy an NCL script into the directory where you currently are, and then run it.
>> 
>> There are some directories that you are not allowed to write files to unless you are a "super user" or have special administrative purposes, and my guess is that you tried to run "ng4ex" from one of these directories.
>> 
>> Try running the command from your home directory instead:
>> 
>> cd
>> ng4ex gsun01n -clean
>> 
>> The "cd" command without any arguments should cd to your home directory by default.
>> 
>> --Mary
>> 
>> On May 19, 2014, at 11:37 PM, Ning Li <ning.li at auckland.ac.nz> wrote:
>> 
>>> Dear NCl users,
>>> I am very new to NCL and would like to install NCL on my MAC laptop.
>>> It seems I have done the downloading and setting environment variable parts successfully, but
>>> when I run ng4ex gsun01n -clean (the example on NCL website) to see if the installation is completed.
>>> what is returned by bash is:
>>> NCAR Graphics NCL Example <gsun01n>
>>> ...[omitted]
>>> ...
>>>   Copy gsun01n.ncl
>>> cp: ./gsun01n.ncl: Permission denied
>>> 
>>> Running NCL...
>>> gsun01n.ncl: No such file or directory.
>>> 
>>> ncl failed.
>>> I am not familiar with command lines at all so I suspect I've done something wrong.
>>> Below is the environment variable and system information if that helps to understand what
>>> is going on..
>>> export NCARG_ROOT=/Users/Crystal/usr/local/ncl-6.2.0
>>> export PATH=$NCARG_ROOT/bin:$PATH
>>> The 'ncl-6.2.0' directory contains 3 folders: 'bin','include' and 'lib'.
>>> 
>>> The version of NCL I downloaded is 'ncl_ncarg-6.2.0.MacOS_10.8_64bit_nodap_gcc471.tar' and I
>>> am able to unzip the tarfile. The Mac version is 10.8.5.
>>> 
>>> I am really hoping to get NCL installed as it seems to have excellent functionality for climate analysis!
>>> 
>>> Thank you all
>>> 
>>> Crystal (Ning) LI
>>> 
>>> PhD candidate
>>> School of Environment
>>> The University of Auckland
>>> _______________________________________________
>>> ncl-install mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>> 
> 



More information about the ncl-install mailing list