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

ifort not working?

sramanujam
Beginner
762 Views
Yesterday I installed Intel Fortran Compiler 10.0 for Linux (Fedora 8) in my computer. The installation was successful and I compiled one of the sample fortran code came with the compiler. But today something has happened to my comp. When I try to run some other sample code, I am getting an error message that says ifort : - command not found. Why am I getting this error message today, but not yesterday? How can I run the fortran codes again?
0 Kudos
5 Replies
Steven_L_Intel1
Employee
762 Views
Did you use the "source" command to make ifort available? You must do this for each new session.
0 Kudos
sramanujam
Beginner
762 Views
hi steve
thank you for your response. i used 'source' and now it is working. but doing this for each new session is a bit difficult. is there a way to automate this?
Jam.
0 Kudos
Steven_L_Intel1
Employee
762 Views
I'm not a Linux expert, but I'd think you should be able to do this in the .login script, yes?
0 Kudos
sramanujam
Beginner
762 Views
am also a newbie to linux! i tried googling for '.login script' but couldn't find much information. thanks by the way steve, i'll pose this question in linux forum and will try to post the response here.
0 Kudos
TimP
Honored Contributor III
762 Views
Any search engine should produce plenty of information on this subject, e.g. 'bash login script' or 'tcsh login script' to mention 2 of the more popular choices.
You could include 'source /opt/intel/fce/10.1.015/bin/ifortvars.sh' in .bash_profile, for example, or ask which of multiple ifort installations should be selected.
0 Kudos
Reply