Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a simple Intel C/C++ compiler on a 64-bit Ubuntu system?

Tags:

c++

c

ubuntu

intel

icc

I need to compile c/c++ code, by running a build.sh file. The instruction on the program (that i want to run) says it needs to be compiled by a Intel's compiler1.

After searching on the net I came across information on what to do. Some people said that we must install first a 32-bit libraries: https://help.ubuntu.com/community/InstallingCompilers

Others said that we must, first of any installation, change some things: http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu

In the other hand, Intel's page show many suites: http://software.intel.com/en-us/c-compilers

while the only thing that I want is simply Intel's C/C++ compiler.

Can somebody be so gentle to give me the directions on how to install a Intel's compiler on a 64-bit Ubuntu system?


Footnote 1 / Editor's note: other x86 compilers including GCC and clang (and MSVC on Windows), support Intel's SSE/AVX intrinsic functions, but Intel's compiler comes with some libraries such as SVML (e.g. SIMD sin and exp) and MKL which some code might need. Other compilers can be used with SVML if you have it installed separately.

In short, it's worth trying with other compilers, especially if you understand why something says it needs to be compiled by ICC, if getting ICC would be inconvenient. But you might (or might not) be missing out on performance for packages that detect what's available instead of just erroring.

like image 720
xeex Avatar asked Oct 30 '13 15:10

xeex


People also ask

Does Ubuntu have c compiler?

It's present in all Linux/Unix distributions. gcc(GNU Compiler Collection) is one of the most widely used C compilers . Ubuntu uses gcc and is installed by default when you install it on your system. Type gcc <filename> and g++ filename on the terminal to compile C and C++ programs respectively.

Where is Intel compiler installed?

The Intel® C++ Compiler will be installed as part of the Intel® System Studio, along with all the other components.

Where is c compiler in Ubuntu?

You need to use the which command to locate c compiler binary called gcc. Usually, it is installed in /usr/bin directory.


2 Answers

for non commercial use you can download it from Intel

EDIT:

the Intel® System Studio 2016 includes a c++ compiler.

like image 118
SHR Avatar answered Nov 15 '22 12:11

SHR


I've tried the 32-bit version of it, the non-commecial one. I don't think it differ from the 32-bit on basic stuff related to installation. Open this and go to compilers and libraries section and you will see the C/C++ compiler. After download it read the files in doc folder; it includes how to install/use/get a key to compiler etc.

like image 42
The Mask Avatar answered Nov 15 '22 13:11

The Mask