Ubuntu – Configuring Ubuntu 12.04 so that it recognizes the recently installed icc compiler

bashcommand linecompiler

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?

Best Answer

The compiler could be installed in any set of directories. Just look for it by using find:

find / -name icc -executable

Then you'll get a line like so:

/some/random/directory/icc

Just 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.

Related Question