Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

ifortvars.csh error

ghatolesspun_matherp
687 Views
I am tring to run ifortvars.csh script i am getting this error i am not unable to run this command ifort
can any one please help me.

/opt/intel/Compiler/11.1/069/bin/ifortvars.csh intel64
/opt/intel/Compiler/11.1/069/bin/ifortvars.csh: line 10: syntax error near unexpected token `"$1"'
0 Kudos
3 Replies
eliosh
Beginner
687 Views
Your shell may not be cshell.
0 Kudos
Steven_L_Intel1
Employee
687 Views
You also need "source" at the beginning of the line. See your other thread.
0 Kudos
Ron_Green
Moderator
687 Views
You can confirm your shell with:

echo $0

and then if it is csh or tcsh, use this:

source ..../ifortvars.csh intel64

if bash, then

source ..../ifortvars.sh intel64

And you know that "...." is shorthand for your full path - use the full path, not 4 dots.

0 Kudos
Reply