Re: Still mystery and no go.

From: Joseph Cain <joseph.cain_at_nyahnyahspammersnyahnyah>
Date: Fri Feb 25 2011 - 14:48:35 MST

Your recipe almost worked, at least insofar as making the env with the proper directory. However, the path seems not to want to pay attention to the fact that the ncl is in the /applications directory. Thanks especially for reminding me of the rehash command. It has been a pain to reboot the whole system with all the other programs i have going on it at once.
As you can see below I also tried to put the bin directory in the path directly instead of just with ${NCARG_ROOT}/bin with the same failed result.
One tiny more mystery to me is why the system keeps making "applications" "Applications" in the env. It also seems to allow that directory to have either spelling. I thought that unix was pretty case sensitive but must not be for the Imac.

  [Joe-Mac-1008:~] josephcain% emacs .cshrc
[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:${NCARG_ROOT}/bin
alias find 'find . -name '
alias ls 'ls -CF'
[Joe-Mac-1008:~] josephcain% rehash
[Joe-Mac-1008:~] josephcain% ng4ex gsun01n
ng4ex: Command not found.
[Joe-Mac-1008:~] josephcain% env | grep NCARG
NCARG_ROOT=/Applications/ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_nodap_gcc421
[Joe-Mac-1008:~] josephcain% echo $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

[Joe-Mac-1008:~] josephcain% emacs .cshrc
[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:/applications/ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_nodap_gcc421/bin
alias find 'find . -name '
alias ls 'ls -CF'
[Joe-Mac-1008:~] josephcain% rehash
[Joe-Mac-1008:~] josephcain% env | grep NCARG
NCARG_ROOT=/Applications/ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_nodap_gcc421
[Joe-Mac-1008:~] josephcain% echo $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
[Joe-Mac-1008:~] josephcain% ng4ex gsun01n
ng4ex: Command not found.

On Feb 25, 2011, at 3:49 PM, Ted Mansell wrote:

>
> Your path does not include the ncl bin directory.
>
> Instead of
>
> 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
>
> try
>
> setenv PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:${NCARG_ROOT}/bin
>
> Or just on the command line, type
>
> set path=($path ${NCARG_ROOT}/bin)
>
> then type "rehash" (may or may not be needed), and try the ng4ex test again.
>
> (Actually it is better to test whether PATH is already set or not unless you have a need to clobber the default value.)
>
> -- Ted
>
> On Feb 25, 2011, at 1:04 PM, Joseph Cain wrote:
>
>> 1. I have set the default sign on shell for my IMac to tcsh and the .cshrc file seems to be invoked because it uses the alias for ls to be "ls -CF" which it did not do before when the sign on default was bash. I tried creating a .tcshrc file but that does not work. Also, I have tried from the bash shell just setting to csh and also no go.
>>
>> so to recap
>>
>> [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
>> alias find 'find . -name '
>> alias ls 'ls -CF'
>>
>> but still
>>
>> [Joe-Mac-1008:~] josephcain% ng4ex gsun01n
>> ng4ex: Command not found.
>>
>> and the environment is still set to the old file which is not there!
>>
>> [Joe-Mac-1008:~] josephcain% env | grep NCARG
>> NCARG_ROOT=/Applications/ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_nodap_gcc421
>> [Joe-Mac-1008:~] josephcain% grep ncl_ncarg-5.1.1.MacOS_powerpc_9.7.0 ~/.*
>> /Users/josephcain/.bash_history:/Applications/ncl_ncarg-5.1.1.MacOS_powerpc_9.7.0/bin/ng4ex ; exit;
>> [Joe-Mac-1008:/applications] josephcain% echo $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
>> [Joe-Mac-1008:/] josephcain% cd /applications
>> [Joe-Mac-1008:/applications] josephcain% ls -l | grep ncl
>> drwx------@ 5 josephcain staff 170 Feb 21 18:06 ncl_ncarg-5.2.1.MacOS_10.6_i386_64bit_nodap_gcc421/
>>
>> Anyone have any ideas?
>>
>>
>>
>> _______________________________________________
>> 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 Fri Feb 25 14:48:43 2011

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