Install ICC 8.1 on Ubuntu

Source: Internet
Author: User
The parallel server uses Intel C ++ compiler 8.1. To ensure software compatibility, I also installed this version of ICC on my ubuntu, in fact, the method for installing 9.0 and 10.0 is the same, but you can change the name when modifying the script file.

Download it from Intel's official website, register a non-commercial user, and decompress the package. Of course, you need to download the Linux version ~~

Decompress the package and find all the RPM packages in it. Our lovely Ubuntu needs Deb. There is a software that can convert RMP to Deb and install it immediately:

Sudo apt-Get intall alien

Then go to the decompressed directory of ICC.

CD l_cc_pc_8.1.038
Sudo alien-CV intel-icc8-8.1-038.i386.rpm

Then install:
Sudo dpkg-I intel-icc8_8.1-39_i386.deb

Download a license file from your registered email address and copy it to the/opt/intel_cc_80/license directory.

Next, let's take a key step.

CD/opt/intel_cc_80/bin

Sudo Perl-pi-w-e's /! // Bin // sh /! // Bin // bash/g ;'*

Sudo Perl-pi-w-e's/<INSTALLDIR>///opt//intel_cc_80/g;'*

If you have installed 9.0 or 10.0, you only need to replace intel_cc_80 in the third command with the corresponding path.

Finally, add the following sentence to your. bashrc file:

Export Path = $ path:/opt/intel_cc_80/bin
Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/opt/intel_cc_80/lib
Export manpath = $ manpath:/opt/intel_cc_80/man
Export intel_license_file = $ intel_license_file:/opt/intel_cc_80/licenses

Log on to the system again and try ICC:

ICC-version
8.1

Done! Close!

PS. OpenMP is good! Very powerful!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.