Umm,, I suppose PATH for bash, path for tcsh.
Please check the following... and see man bash nad man tcsh.
Your trouble may be concerned with the following...?
Under Bash environment.
$ type -a echo
echo is a shell builtin
echo is /bin/echo
$ type -a printenv
printenv is /usr/bin/printenv
Under Tcsh environment.
> where echo
echo is a shell built-in
/bin/echo
> where printenv
printenv is a shell built-in
/usr/bin/printenv
>>>>> On Sat, 11 Mar 2006 02:56:46 -0800,
>>>>> [mars.lenjoy_at_[hidden]] wrote:
> in addition,
> $ echo $PATH
> /u3/yz12/LAMHOME/bin:/usr/local/bin:/bin:/usr/bin:/opt/pbs/bin:/opt/pbs/lib/xpbs/bin:/usr/X11R6/bin
> $ printenv PATH
> /usr/local/bin:/bin:/usr/bin:/opt/pbs/bin:/opt/pbs/lib/xpbs/bin:/usr/X11R6/bin
> puzzled...
> 2006/3/11, Nobuhiro KUSUNO <n-kusuno_at_[hidden]>:
> >
> > Try using
> > set path (${LAMHOME}/bin:$path)
> > or
> > setenv path (${LAMHOME}/bin:$path), instaed.
> >
> > I'm BASH user, so I don't know the TCSH behavior and the difference
> > between set and setenv...
> >
> > > I'm using TCSH
> >
> > > $ /u3/yz12/LAMHOME/bin/mpicc
> > > gcc: no input files
> >
> > > $ echo $PATH
> > > /u3/yz12/LAMHOME/bin:/usr/local/bin:/bin:/usr/bin:/opt/pbs/bin:/opt/pbs/lib/xpbs/bin:/usr/X11R6/bin
> >
> > > $ mpicc
> > > mpicc: Command not found.
> >
> > > look here!!!!! that's the point!!!!!!!!!!!!!!!!
> > > why???
> >
|