[ncl-install] problem with set up my NCL environment‏

Mary Haley haley at ucar.edu
Wed Jan 14 12:42:42 MST 2009


Sebastien,

Dave Brown pointed out to me that your PATH is actually not being set
correctly. It might have been working before if already had
"/usr/local/bin" in your search path.

For future reference, to correctly set your path for ksh or bash:

   export PATH=$NCARG_ROOT/bin:$PATH

For sh, it requires two lines:

   PATH=$NCARG_ROOT/bin:$PATH
   export PATH

For csh:

  setenv PATH $NCARG_ROOT/bin:$PATH

This syntax is confusing and easy to get wrong!

--Mary

On Wed, 14 Jan 2009, Mary Haley wrote:

> Hi Sebastien,
>
> Your PATH environment variable is okay, because if it wasn't, you
> would be getting an error like:
>
>  ncl: Command not found
>
> It looks like your NCARG_ROOT environment variable is not being set
> correctly. I think this is because "NCARG_ROOT" is being set with the
> "set" command, which is wrong.
>
> Replace the two NCARG_ROOT lines you have in the .bashrc file with:
>
>   export NCARG_ROOT=/usr/local
>
> Then, logout and log back in, and try running NCL again.
>
> You can also check that NCARG_ROOT is set correctly by typing:
>
>  echo $NCARG_ROOT
>
> I will fix the documentation that has the incorrect information.
>
> --Mary
>
> On Wed, 14 Jan 2009, [windows-1256] Sébastien Doutreloup wrote:
>
>> 
>> Hi,
>> 
>> i've problem with the set up of my NCL environment.
>> i untar the file (ncl_ncarg-5.0.0.Linux_i686_gcc4.tar) in usr/local , then 
>> i do this in usr/local :
>>    export NCARG_ROOT=/usr/local
>> then this :
>>    export PATH=(/usr/local/bin $PATH)
>> 
>> But when i try to do this :
>>    ng4ex gsun01n
>> This message appears : Path to directory(root) not found [  environment 
>> variable not set ]
>> 
>> So, i read this page : 
>> http://www.ncl.ucar.edu/get_started.shtml#SetUpEnvironment
>> 
>> i do :
>> echo $SHELL
>> --> bin/bash
>> in usr/local , i do :
>>    set NCARG_ROOT=/usr/local
>> then
>>    export NCARG_ROOT
>> i copy this two lines in my /.bashrc file
>> 
>> But when i want to search my path with :
>>    grep -i path ~/.*
>> I havn't a line looks like :
>>    set path=(~/bin /usr/bin /bin/etc /usr/X11R6/bin /usr/local/bin)
>> or
>>    setenv PATH ~/bin:/usr/bin:/bin/etc:/usr/X11R6/bin:/usr/local/bin
>> 
>> what's the problem ?
>> What i have to do now ??
>> 
>> Please help me
>> Thanks a lot
>> 
>> Sebastien
>> 
>> i'm running in Ubuntu Intrepid ibex
>> 
>> 
>> 
>> 
>> 
>> 
>> _________________________________________________________________
>> Vous pouvez désormais lire tous vos comptes e-mails à un endroit. Gagnez du 
>> temps grâce à Windows Live !
>> http://www.microsoft.com/windows/windowslive/default.aspx


More information about the ncl-install mailing list