Running the Shell Script to Set Up the Environment Variables

Before you first invoke the compiler, you need to set the environment variables to specify locations for the various components.

The Intel Fortran Compiler installation includes a shell script that you can use to set environment variables.

Use the source command to execute the shell script from the command line. For example, to execute this script file for the bash shell:

source /opt/intel/fc/9.0/bin/ifortvars.sh

If you use the C shell, use the .csh version of this script file:

source /opt/intel/fc/9.0/bin/ifortvars.csh

If you want ifortvars.sh to run automatically when you start Linux*, edit your .bash_profile file and add the line above to the end of your file. For example:

# set up environment for Intel compiler

source /opt/intel/fc/9.0/bin/ifortvars.sh