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

Using ifort on Ubuntu 8.04

doone
Beginner
1,019 Views
Hi, I am new to Linux, I installed Fortran 10.1 on Ubuntu 8.04 successfully, but my ifort command is not recognized. I assume I need to something more, I would really appreciate any suggestions on how to make this work. Thanks.
0 Kudos
4 Replies
Ron_Green
Moderator
1,019 Views

once the installation is done, Intel fortran is installed in /opt/intel/fce for a 64bit OS, and /opt/intel/fc for a 32bit OS.

Let's assume you have the 64bit OS. Then to set your environment for ifort,

source /opt/intel/fce/10.1.015/bin/ifortvars.sh

if 32bits, use "fc" instead of "fce" above.

Then, simply:

ifort helloworld.f90

ron
0 Kudos
Bonnie_A_Intel
Employee
1,019 Views
Please also review the "Hot Tips" item on recommendations for installing on Ubuntu 8.04.
0 Kudos
valemar80
Beginner
1,019 Views

once the installation is done, Intel fortran is installed in /opt/intel/fce for a 64bit OS, and /opt/intel/fc for a 32bit OS.

Let's assume you have the 64bit OS. Then to set your environment for ifort,

source /opt/intel/fce/10.1.015/bin/ifortvars.sh

if 32bits, use "fc" instead of "fce" above.

Then, simply:

ifort helloworld.f90

ron
Hi, I'm Valeria fron Argentina. I have the same problem but when execute ifort show:
export: 36: Illegal option -n
Help!!!

Sorry my english, I'm learning. Merry Christmas!!!!

0 Kudos
Ron_Green
Moderator
1,019 Views
Quoting - valemar80
Hi, I'm Valeria fron Argentina. I have the same problem but when execute ifort show:
export: 36: Illegal option -n
Help!!!

Sorry my english, I'm learning. Merry Christmas!!!!


Maybe you use CSH instead of bash?

echo $0

will print your shell. If it is csh or tcsh, use ifortvars.csh instead of ifortvars.sh in the command above

ron
0 Kudos
Reply