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

IFORT error

ghatolesspun_matherp
1,074 Views
Hi,
We have recently purchased Intel FORTRAN 11.1 Linux version. We are new users to this. At this moment we can write simple programs. But we cannot compile the program by command "ifort program_name.f90".
The program is very simple. The error is " bash:ifort:command not found".

We compiled the same program by command "gfortran -g program_name.f90", and it works. But we need the program to run by "ifort" command because we need to link the FORTRAN Compiler with another software.

Before compiling we had tried toset the enviornment variables by the command

//opt/intel/Compiler/11.1/069/bin/ifortvars.shintel 64

which follows by error

./ifortvars.csh intel64/
./ifortvars.csh: line 10: syntax error near unexpected token `"$1"'
./ifortvars.csh: line 10: `switch ("$1")'



We are not experts in linuxsystem.

So I request you to reply us as early as possible.

Thanks.


Samir

0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,074 Views
The command to use is:

source /opt/intel/Compiler/11.1/069/bin/ifortvars.cshintel64

Since you are apparently using csh, then use the csh version of the file. You need "source" and "intel64" has no embedded spaces.
0 Kudos
ghatolesspun_matherp
1,074 Views
Hi,

Thanks for your reply.

Actually we are using Dell precssion 490 workstaion(Xeon processor E5345 @233GH) x86_64 bit Red hat Enterprise Linx Destop 5 Version.So we installed INTEL64

We had already entered this command source /opt/intel/Compiler/11.1/069/bin/ifortvars.cshintel64 it has worked but we are not able tocompile"ifort" commnd.Again it is giving thesame error "ifort: command not found"

As per the requirment we have also installed jre-6u19-linux-x64-rpm(Java).

Please guide us in this matter.

Waiting for your reply.


Regards
Sameer

0 Kudos
Steven_L_Intel1
Employee
1,074 Views
I think one of our Linux experts will need to help you here. Can you show us the output of the console session where you do the "source" command followed by "ifort"? What is the contents of /opt/intel/Compiler/11.1/069/bin/intel64 ?
0 Kudos
TimP
Honored Contributor III
1,074 Views
Show also the environment variable contents of PATH and LD_LIBRARY_PATH. Those should have been set when you source ifortvars.csh.
0 Kudos
ghatolesspun_matherp
1,073 Views
Thanks now its working after "source" command.


Thanks
Sameer
0 Kudos
Reply