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

ifortvars problem

joseph_sims
Beginner
1,053 Views
Hello,

I installed the compiler (version 9.0.031) on Fedora Core 4 and the ifortvars.sh script doesn't seem to help. I can run it from a terminal command line and then invoke the compiler. The "command not found" error occurs. I am aware that FC4 is ont officially supported, but others in this forum have apparently gotten it to work. What should i check?

Thanks
Joe
0 Kudos
5 Replies
TimP
Honored Contributor III
1,053 Views
A working gcc installation must be active, so that 'gcc -v' 'gcc -m32 -v' and 'ld --version' work. Installation of FC4 software development package, including "legacy" or 32-bit development and compatibility libraries, should have taken care of that.
If you are running tcsh or csh, of course you run ifortvars.csh instead of ifortvars.sh. You select 32- or 64-bit compiler by running the ifortvars in the /fc/bin or /fce/bin installation directories. ifortvars should make your ifort installation directories appear in the PATH and LD_LIBRARY_PATH environment variables. Then 'which ifort' should show you the installed ifort path. Then ifort should find all the components it requires.
0 Kudos
joseph_sims
Beginner
1,053 Views
gcc works fine. I ran the three commands with no problems. Now what?
0 Kudos
Steven_L_Intel1
Employee
1,053 Views
Just checking - you ARE using the "source" command to invoke ifortvars.sh, right? (Use ifortvars.csh if you're using csh.)
0 Kudos
joseph_sims
Beginner
1,053 Views
I wasn't--thanks for the catch! I have been using Linux all of about five days now, so forgive my ignorance. Thanks for the help!

Joe
0 Kudos
Steven_L_Intel1
Employee
1,054 Views
No problem - Linux is strange to me too. I mentioned it mainly because I've made the same mistake more than once.
0 Kudos
Reply