Security of IntelC ++ compiler in UbuntuKarmic

Source: Internet
Author: User
Yesterday, I downloaded the C ++ compiler for non-commercial development on Intel's official website. My system is ubuntu64bit, So I downloaded the Intel64 version. For more information about the differences between ia32, ia64, and intel64, see Wikipedia. The 32-bit system can directly download ia32. Since Intel's compiler currently only supports Ubuntu9.04, I encountered a problem when installing it on 9.10. Decompress the installation package, run./install. sh on the terminal, and follow the prompts.

Yesterday, I downloaded the non-commercial C ++ compiler from Intel's official website. My system is Ubuntu 64-bit, so I downloaded the Intel64 version. For more information about the differences between ia32, ia64, and intel64, see Wikipedia. The 32-bit system can directly download ia32.

Since Intel's compiler currently only supports Ubuntu 9.04, I encountered a problem when installing it on 9.10. Decompress the installation package, run./install. sh on the terminal, and follow the prompts step by step. when checking the system environment, the system prompts that the 32-bit libgcc and other libraries are not found. According to the instructions in the installation package, the ia32-libs is installed, the installer still prompts that the file is not found. After Google search, the solution was found on the Ubuntu English forum.

I remember that when Karmic was in the testing phase, after a small update, we found that many software dependent on libstdc ++ 5 could not run, because Karmic has replaced this package with libstdc ++ 6. This problem also occurs when installing the Intel compiler.

Download the libstdc ++ 5 deb package, decompress the package, find libstdc ++. so.5.0.7 in the./usr/lib folder, and

Sudo install libstdc ++. so.5.0.7/usr/lib32
Cd/usr/lib32
Sudo ln-s libstdc ++. so.5.0.7 libstdc ++. so.5

PS: the above method is too troublesome and seems to be unable to use the compiler after installation. Search for libstdc ++ 5 on the Debian official website. Download the deb package of amd64 to install it.

In this way, the installation will be successful. I did not use sudo for installation. I chose to install it directly in the/home/ariesbear/intel directory.

To use this compiler, run the following command:

Source/link/to/the/compiler/bin/intel64/iccvars_intel64.sh

Modify the 32-bit system. Add this command to the. bashrc file, and then you can use icc to compile the program directly.

It is said that the execution efficiency of the program compiled by Intel compiler will be greatly improved. Please try again. I am very interested in the LinuxDNA project. What if I use the Linux kernel compiled by icc compared to gcc?

Author: Ariesbear

Related Article

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.