Setting Environment Variables from the Command Line

When invoking the Intel® compiler Build Environment shell, or when your makefile does not include settings for environment variables, you need to first set environment variables by running the appropriate Intel compiler script.

Windows

On Windows, the script is run automatically when launching the Intel compiler Build Environment shell.

Linux

To run the script on Linux using the bash shell, enter one of the command lines in the following table (based on the default installation path:

For this Intel compiler for Linux... Enter the following command line...

C++ Compiler for IA-32 and Itanium®-based Applications

prompt>source /opt/intel/cc/9.0/bin/iccvars.sh

Fortran Compiler for IA-32 and Itanium-based Applications

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

C++ Compiler for Intel® Extended Memory 64 Technology (Intel® EM64T)-based Applications

prompt>source /opt/intel/cce/9.0/bin/iccvars.sh

Fortran Compiler for Intel® EM64T-based Applications

prompt>source /opt/intel/fce/9.0/bin/ifortvars.sh

Note: If you use a C shell, replace the extension .sh in the above table with .csh.