Environment Variables
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 location for all Intel-provided libraries.
- PATH specifies the directories
the system searches for binary executable files.
- ICCCFG specifies the configuration
file for customizing compilations with the icc
compiler.
- ICPCCFG specifies the configuration
file for customizing compilations with the icpc
compiler.
- ECCCFG specifies the configuration
file for customizing compilations with the ecc
compiler.
- ECPCCFG specifies the configuration
file for customizing compilations with the ecpc
compiler.
- TMP specifies the directory
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)
points to the directory containing the bin, lib, include and substitute
header directories.
- IA64ROOT (Itanium®-based systems)
points to the directory containing the bin, lib, include and substitute
header 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 in the following
locations (assuming you installed to the default directories):
Bash Shell Environment
- IA-32 Systems:
/opt/intel/compiler70/ia32/bin/iccvars.sh
- Itanium®-based
Systems: /opt/intel/compiler70/ia64/bin/eccvars.sh
To run the iccvars.sh script, enter the following
on the command line:
prompt>source
/opt/intel/compiler70/ia32/bin/iccvars.sh
If you want the iccvars.sh to run automatically
when you start Linux, edit your startup script (.bash_profile
for a bash shell) and add the same line to the end of your file:
# set up environment for icc
source /opt/intel/compiler70/ia32/bin/iccvars.sh