You can customize your environment by specifying paths where the compiler can search for special files such as libraries and include files.
LD_LIBRARY_PATH specifies the directory path for the math libraries. Also, the compiler calls link, the GNU* linker, to produce an executable file from the object files. This linker searches the path specified in the LIB environment variable to find the libraries. Also, the assembler relies on LD_LIBRARY_PATH for the location of the associated libraries.
PATH specifies the directory path for the compiler executable files.
INCLUDE specifies the directory path for the "include" files.
TMP specifies the directory in which to store temporary files. If the directory specified by TMP does not exist, the compiler places the temporary files in the current directory.
IA32ROOT (IA32-based systems) – If you choose to install the Intel® C++ Compiler to a location other than the default location, you will need to modify the variable IA32ROOT in your environment to point to this location. It should point to the directory containing the bin, lib, and include directories.
IA64ROOT (Itanium(TM)-based systems) -- If you choose to install the Intel C++ Compiler to a location other than the default location, you will need to modify the variable IA64ROOT in your environment to point to this location. It should point to the directory containing the bin, lib, and include directories.
The Intel C++ Compiler installation includes shell scripts that you can use to set environment variables. From the command line, execute the shell script appropriate to your installation. You can find these scripts at the following locations (assuming you installed to the default directories):
To run the iccvars.sh script, enter the following on the command line:
prompt: . /opt/intel/compiler50/ia32/bin/iccvars.sh
If you want the iccvars.sh to run automatically when you start Linux, edit your .bash_profile file and add the same line to the end of your file: