Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

compiler vars on PATH

Cummins__Daniel
Beginner
145 Views

Hi All,

So I've installed Parallel Studio XE on my Ubuntu machine, and following the 'Get Started with...' file in the documentation, I've initialised the tools using 'source psxevars.sh', so all well and good so far.

This is only temporary, however, since if I actually want to use any of these compilers I have to 'initialise the tools' each time I start a new terminal.

Typing 'which gcc' returns /usr/bin/gcc (which is on the PATH), while 'which icc' returns a location inside /opt/intel/...

Is the simple solution here just to add the results of 'source psxevars.sh' to the PATH permanently?

Many thanks,

Dan

0 Kudos
4 Replies
jimdempseyatthecove
Black Belt
145 Views

Generally you should not want to do this. Reason, Intel, as well as other software companies, produce updates. When this happens, it is recommended that you do not "burn your bridges" so to say and throw out the prior release. IOW you would be advised to build with older version as well as newer version such that you can perform integrity tests, as well as performance tests between both versions. At some point later, if you desire, you can delete/uninstall the older version(s).

Jim Dempsey

Cummins__Daniel
Beginner
145 Views

Hi Jim,

Thanks for getting back to me. So if it's not recommended to keep them on the path, I assume I have to perform the initialisation step every time I start a new terminal... unless I just use an IDE?

Cheers,

Dan

jimdempseyatthecove
Black Belt
145 Views

You can create a shortly worded shell script that sources into a new window. This will keep your typing down.

bash ./foo.sh+

Jim Dempsey

Cummins__Daniel
Beginner
145 Views

Now that right there is a good idea. Thanks again!

Dan

Reply