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!