- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
9 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your help I have a intel compiler running on Red Hat Enterprise Linux 6.1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
alias ifort = '-dir/ifort'
where:
-dir = is the address where you have installed ifort
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
021184 - please use Reply rather than starting new topics when you want to add to a discussion. I have merged your replies.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page