[ncl-install] thought I fixed the path, but did not take either?

Mary Haley haley at ucar.edu
Thu Feb 24 09:01:02 MST 2011


On Feb 24, 2011, at 8:48 AM, Joseph Cain wrote:

> After signing off and back on again still have the wrong file on both the path and env?? 

It looks like your .cshrc file is not getting "sourced" when you login. This could be because there's something wrong with it, or perhaps your default shell is not csh, but something else like bash.

Note that your NCARG_ROOT is set to /Applications/ncl_ncarg-5.1.1.MacOS_powerpc_9.7.0/bin. Which .* file in your home directory is setting this? This is probably the file you should modify to change NCARG_ROOT to the new path.

Also, when you run "ng4ex", you shouldn't put "./" in front of it, because then the operating system will think it is in your current working directory.  Just type:

   ng4ex gsun01n

and if your path environment variable is set correctly, your OS will find it.

I think you are going to run into further problems with the way you have DISPLAY set. I would try commenting this out, and let the OS try to figure out the correct setting for it. The way you have it below looks incorrect.

--Mary


> Joe-Mac-1008:~ josephcain$ more .cshrc
> setenv NCARG_ROOT /Applications/ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_nodap_gcc421
> setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_nodap_gcc421/bin
> setenv DISPLAY: 0.0
> Joe-Mac-1008:~ josephcain$ ./ng4ex gsun01n
> -bash: ./ng4ex: Permission denied
> Joe-Mac-1008:~ josephcain$ tcsh
> [Joe-Mac-1008:~] josephcain% ./ng4ex gsun01n
> ./ng4ex: Permission denied.
> [Joe-Mac-1008:~] josephcain% ./ng4ex 
> ./ng4ex: Permission denied.
> [Joe-Mac-1008:~] josephcain% echo $path
> /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/texbin /usr/X11/bin /Applications/ncl_ncarg-5.1.1.MacOS_powerpc_9.7.0/bin
> [Joe-Mac-1008:~] josephcain% env |grep ncl
> PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/Applications/ncl_ncarg-5.1.1.MacOS_powerpc_9.7.0/bin
> NCARG_ROOT=/Applications/ncl_ncarg-5.1.1.MacOS_powerpc_9.7.0
> [Joe-Mac-1008:~] josephcain% 
> 
> _______________________________________________
> 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/20110224/4737868b/attachment.html 


More information about the ncl-install mailing list