M HYPE SPLASH
// news

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

By Sarah Scott

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?

2

2 Answers

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.

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 intel64

to setup your environment correctly for using icc. Add the line to your .bashrc so that is gets run in every terminal you open.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy