[ncl-install] bash: ncl: command not found...
Jonathan Murray
jmurray at whoi.edu
Fri Sep 12 03:32:21 MDT 2014
We set our path stuff in /etc/profile.d
All users on the system get the same version/path
Works.
example:
[root at machine etc]# more /etc/profile.d/ncl-6.2.0.sh
export NCARG_ROOT=/usr/local/ncl-6.2.0
export PATH=$NCARG_ROOT/bin:$PATH
[root at machine etc]# echo $NCARG_ROOT
/usr/local/ncl-6.2.0
[root at machine etc]# su - username
[username at machine ~]$ echo $NCARG_ROOT
/usr/local/ncl-6.2.0
If you don't want to do it that way, you should have an entry in
.bash_profile in your home directory, as opposed to root.
good luck,
Jonathan
On 9/12/14 5:02 AM, juki juki wrote:
> Dear All;
>
> I have used ncl for long time and I tried to install ncl in my new
> linux pc. However, I got the following command:
>
> bash: ncl: command not found...
>
> I try to follow the guidance at the following link:
>
> http://www.ncl.ucar.edu/get_started.shtml#SetNCARG_ROOT
>
> But, I didn't get any success, "bash: ncl: command not found..." still
> appears.
>
> The following are the information that may be usefull:
>
> [root at localhost ~]# echo $SHELL
> /bin/bash
>
> [root at localhost ~]# grep -i path ~/.*
> grep: /root/.: Is a directory
> grep: /root/..: Is a directory
> /root/.bash_history:export PATH=$NCARG_ROOT/bin:$PATH
> /root/.bash_history:export LD_LIBRARY_PATH=/usr/local/lib
> /root/.bash_history:export LD_LIBRARY_PATH=/usr/local/lib
> /root/.bash_history:PATH=$NCARG_ROOT/bin:$PATH
> /root/.bash_history: export PATH
> /root/.bash_history:setenv PATH $NCARG_ROOT/bin:$PATH
> /root/.bash_history: export PATH=$NCARG_ROOT/bin:$PATH
> /root/.bash_history:env | grep LD_LIBRARY_PATH
> /root/.bash_history:export LD_LIBRARY_PATH=/usr/local/lib
> /root/.bash_profile:PATH=$PATH:$HOME/bin
> /root/.bash_profile:export PATH
> grep: /root/.cache: Is a directory
> grep: /root/.config: Is a directory
> grep: /root/.gnupg: Is a directory
> grep: /root/.local: Is a directory
> grep: /root/.mozilla: Is a directory
> grep: /root/.pki: Is a directory
> grep: /root/.ssh: Is a directory
>
> -----------------
> Hope some help if you have experience with such case.
>
> Thank
> joeky
>
>
>
>
>
>
>
> _______________________________________________
> 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/20140912/61aabb53/attachment.html
More information about the ncl-install
mailing list