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

ifort: command not found

Zeeshan_Zeeshan
Beginner
11,679 Views
Hi,

I just installed Intel fortran composer xe on ubuntu 11.04 64-bit machine.
Installation went fine, but when i tried to compile a fortran 90 program, i get the message:

ifort: command not found.

I am not an expert on the linux, but understand that i need to setup smeo variables or something like that. Any help in this regard would be much appriciated.

Regards.
0 Kudos
9 Replies
mecej4
Honored Contributor III
11,679 Views
You need to run the provided batch file ifortvars.sh in the Intel Fortran bin directory in order for the environment to be set up. If you want to run the 32-bit compiler, for example, you do it by entering the command (note the period and space at the beginning):

[bash]$ . <path of IFort main directory>/bin/ifortvars.sh ia32
[/bash]
0 Kudos
TimP
Honored Contributor III
11,679 Views
That leading period is a bash synonym for "source" which is the only way to spell for csh compatible shells For the latter there is a .csh version of the scripts. ifortvars.sh, compilervars.sh et al. are all the same.
0 Kudos
chmurillor
Beginner
11,679 Views
Hi

I have the same problem (ifort:command not found). Unfortunately I have several files with the name ifortvars.sh in different folders

I have included the following lines not only in the .bashrc file in my home folder but also in the terminal window

source /opt/intel/bin/ifortvars.sh ia32
source /opt/intel/bin/ifortvars.csh ia32
source /home/carlos/intelcomposer_xe_2011_sp1.6.233/bin/ifortvars.sh ia32
source /home/carlos/intelcomposer_xe_2011_sp1.6.233/bin/ifortvars.csh ia32
source /opt/intel/bin/ifortvars.sh ia32
source /opt/intel/bin/ifortvars.csh ia32
source /opt/intel/composer_xe_2011_sp1.6.233/bin/ifortvars.sh ia32
source /opt/intel/composer_xe_2011_sp1.6.233/bin/ifortvars.csh ia32

However, the error is still there.

For example, the terminal indicates the following sentence after using ths source command:

carlos@carlos-laptop:~/intel/composer_xe_2011_sp1.6.233/bin/ia32$ source /opt/intel/bin/ifortvars.sh ia32
bash: /opt/intel/composer_xe_2011_sp1.6.233/bin/ia32/idbvars.sh: No such file or directory



Please tell me if you have an additional advice

Thanks

Carlos Murillo
0 Kudos
TimP
Honored Contributor III
11,678 Views
Apparently, your 32-bit idb setup script has gone missing, although the script you invoked was set up for it to be installed. I suppose this could happen if the install didn't complete normally. If you have the uninstall script present in your installation, I would suggest running it (as root) and starting the installation over. You have the option whether to install idb; if you deselect it, the script you invoked shouldn't be looking for it.
0 Kudos
021184
Beginner
11,678 Views
I had the same error on Red Hat Linux:
ifort: command not found
but the solution by adding an alias in a file called custom.sh which is located at / etc / profile.d:
alias = '-dir/ifort'
0 Kudos
Ron_Green
Moderator
11,679 Views
For the 12.x compilers, you use compilervars.sh, not ifortvars.sh. That's a change over 11.x

For 12.x

source /opt/intel/bin/compilervars.sh intel64
or
source /opt/intel/bin/compilervars.sh ia32

If you want a specific version, there is a compilervars.sh in the specific version directories.

You should put this command in your ~/.bashrc file if you want it to take effect on next and subsequent logins.

ron
0 Kudos
021184
Beginner
11,678 Views
Thanks for your help I have a intel compiler running on Red Hat Enterprise Linux 6.1.
0 Kudos
021184
Beginner
11,679 Views
I put a file named custom.sh in "/ etc / profile.d" and put only the following line in that new file:

alias ifort = '-dir/ifort'

where:
-dir = is the address where you have installed ifort
0 Kudos
Steven_L_Intel1
Employee
11,679 Views
021184 - please use Reply rather than starting new topics when you want to add to a discussion. I have merged your replies.
0 Kudos
Reply