Configuring Ubuntu 12.04 so that it recognizes the recently installed icc compiler
I have an Ubuntu 12.04. I installed the icc compiler (composer_xe_2013_sp1.0.080) but when I try to compile using it I get the message :
icc : command not found.
I've read somewhere that when you install a new software you have to make something so that the OS gets aware of it, like modifying the bashrc file or something, but how to do it?
22 Answers
The compiler could be installed in any set of directories. Just look for it by using find:
find / -name icc -executableThen you'll get a line like so:
/some/random/directory/iccJust modify your $PATH variable like this:
export PATH="$PATH:/some/random/directory"N.B: You are adding the directory to your path, not the icc executable.
If you installed the Intel compiler without specifying a destination directory, it should be in /opt/intel. Then run the following command
source /opt/intel/bin/compilervars.sh intel64to setup your environment correctly for using icc. Add the line to your .bashrc so that is gets run in every terminal you open.