You can use the SET command to view or set environment variables one at a time. You can also set environment variables by using the ifortvars.csh and ifortvars.sh files to set several at a time. The files are found in this directory: /opt/intel/fc/9.0/bin. See Running the Shell Script to Set Up the Environment Variables.
Within the C Shell, use the setenv command to set an environment variable:
setenv FORT9 /usr/users/smith/test.dat
To remove the association of an environment variable and its value within the C shell, use the unsetenv command.
unsetenv FORT9
Within the Bourne* shell (sh), the Korn shell (ksh), and the bash shell, use the export command and assignment command to set the environment variable:
export FORT9
FORT9=/usr/users/smith/test.dat
To remove the association of an environment variable and its value within the Bourne* shell, the Korn shell, or the bash shell, use the unset command:
unset FORT9
By default, the compiler picks up the default configuration file (ifort.cfg) from the same directory where the compiler executable resides. However, if you want the compiler to use another configuration file in a different location, you can use the IFORTCFG environment variable to assign the directory and filename for the other configuration file.
See Also