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

Grey_E_
Beginner
639 Views

The problem that I'm experiencing seems to have been reviewed in these forums quite a bit but those solutions haven't solved it for me for whatever reason. My problem is that when I call ifort I receive a "command not found" response.  I successfully installed the compiler and then called compilervars.sh ia32 but still nothing.  I even tried creating a "custom.sh" file in etc/profile.d/ and then putting <install dir>/ifort but that didn't work either.  Does anyone have an idea as to what my problem is?  Thanks so much.

0 Kudos
2 Replies
mecej4
Honored Contributor III
639 Views
If you run the shell script compilervars.sh directly, it will set the necessary environmental variables, but the old environment is reinstated as soon as the shell script completes. The proper command to use is source compilervars.sh ia32
0 Kudos
Grey_E_
Beginner
639 Views
Yes, that worked. Thanks so much.
0 Kudos
Reply