Re: thought I fixed the path, but did not take either?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Feb 24 2011 - 09:01:02 MST

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.


> 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:

ncl-install mailing list
List instructions, subscriber options, unsubscribe:
Received on Thu Feb 24 09:01:05 2011

This archive was generated by hypermail 2.1.8 : Wed Mar 02 2011 - 09:19:21 MST