problem installation 'command not found'

Dear all,
This must be a pretty trivial question but, i have installed the trial version of PGI6.1 and it’s function under bash (as shell) but under (t)csh i cannot get pgf77 to work. I’ve set the environment (in my tcsh config file) as follows:

setenv PGI /usr/pgi
setenv LM_LICENSE_FILE $PGI/license.dat
set PATH = ($PGI/linux86/6.1/bin $PATH)
setenv MANPATH $PGI/linux86/6.1/man

This should do the job, or not? Anyway, if I just run pgf77 -V i get ‘command not found’ (even in the /bin/ dir of pgi). Anyone a solution?!
Thanks a lot in advance.
Best wishes,

Joris

Hi Joris,

Odd. What happens if you use “setenv” instead of “set”.

setenv PATH $PGI/linux86/6.1/bin:$PATH
  • Mat

okay, i used “setenv PATH $PGI/linux86/6.1/bin” and “pgf77 -V” runs now…but it’s not ideal since one looses control over the shell (cannot run ‘ls’ for example anymore)…and pgf77 doesn’t run completely since it gives an “pgf77-Error-Required tool ld was not found” error. So by doing setenv one overtakes the shell environment and that cannot be the idea. Any idea for a solution?

Best,
Joris

Hi Joris,

I want to see if your PATH variable has any spaces or some other character that could be causing this. What’s the output from the following?

echo \"$PGI\"
echo \"$PATH\"
setenv PATH $PGI/usr/linux86/6.1/bin:$PATH
echo \"$PATH\"
  • Mat