Performance Tools for Software Developers - Installing and using Intel® Compilers for Linux* on Ubuntu Linux

This article applies to older Ubuntu 6.10 and Ubuntu 7.04 installations.

For information on installing the Intel Compilers for Linux on Ubuntu 8.04 and 8.10 (and newer as they come), please see THIS ARTICLE.

 

The installer for version 10.x of the Intel® C++ and Fortran Compilers can detect Ubuntu 6.10 and Ubuntu 7.04 systems and patch the compiler scripts during installation to enable these to run correctly. We are looking at changing the compiler scripts to avoid the required patching in future releases.

If you are using an older version of Ubuntu, or an older version of Intel C++ and Fortran Compilers for Linux*, the following steps will help guide you to installing and running on Ubuntu systems. We encourage customers to report problems on unsupported operating systems, as it is possible the problem will reproduce on a supported operating system or we could create a feature request for problems that only occur on unsupported systems.

  1. Ensure that GNU C++ compiler g++ is installed and is working correctly. Ensure that the 32-bit version of the standard C++ library, libstdc++.so.5 (typically found in /usr/lib/libstdc++.so.5) is installed on the machine. Linkage to the 32-bit version of libstdc++.so.5 library is required by Intel Compilers on all Linux distributions.

    Please refer to your Linux distributor's installation materials for installation procedure, and details on the specific compatibility standard C++ library package that provides the required libstdc++.so.5 library.

  2. For building a 32-bit application on 64-bit Ubuntu 7.04 system, ensure that the GNU C library libc6-dev-i386 is installed. For the not yet released Ubuntu 7.10 version, the GNU C++ library g++~multilib is also required. In addition, the 32-bit (IA-32) versions of the C and C++ runtime libraries are needed by Intel Compilers on all Linux distributions as noted previously.

  3. Follow the installation steps outlined in INSTALL.txt to install either the C++ compiler l_cc_p_10.x.xxx.tar.gz compiler package or the Fortran compiler, l_fc_p_10.x.xxx.tar.gz, you've obtained, where xxx is the release number of this compiler. This file is part of the compiler download package.
  4. After executing the install script " install.sh" from the directory where the tar file was extracted, for the C++ compiler it's possible to get the following warning messages given below. (Note that < n> in test_cc.<nnnnn>.log file can be different than shown here).
    --------------------------------------------------------
    Testing C/C++ compilers ...
    Problems with C compiler: Output not equal to <Hello, Wor ld! C>
    See /tmp/test_cc.15904.log for details.

    NOTE: If using a FLOATING or NODE-LOCKED license file, ignore this message.
    Press ENTER to continue.

    Problems with C++ compiler: Output not equal to <Hello, World! C++>
    See /tmp/test_cc.15904.log for details.

    NOTE: If using a FLOATING or NODE-LOCKED license file, ignore this message.
    Press ENTER to continue.


    The /tmp/test_cc.15904.log file will read:

    export: 36: Illegal option -n
    export: 36: Illegal option -n
    ./.././data/install_cc.sh: line 3007: /tmp/test_cc.15904: No such file or directory
    Problems with C compiler: <>!=<Hello, World! C>
    --------------------------------------------------------

  5. This step patches the compiler scripts. The usage of " export -n" in the compiler scripts is only supported on bash and not on POSIX sh. To enable the compiler to work correctly, change the line " /bin/sh" to " /bin/bash" found in the following script files in the < INSTALL_DIR>/bin/ directory (< INSTALL_DIR> is the directory where the compiler is installed Ex: /opt/intel/cc/10.x.xxx for the 10.x C++ compiler, or /opt/intel/fc/10.x.xxx for the 10.x Fortran compiler).

    Files to change for the C++ compiler:
    icc
    icpc
    iccvars.sh
    uninstall.sh
    profrun

    Files to change for the Fortran compiler:
    ifort
    ifortvars.sh
    uninstall.sh
    profrun

  6. Also, if you've installed the debugger idb, then change the line " /bin/sh" to " /bin/bash" found in the following script files in the <INSTALL_DIR>/bin/ directory ( <INSTALL_DIR> is the directory where the debugger is installed Ex: /opt/intel/idb/10.x.xxx).

    idb
    idbvars.sh
    uninstall.sh
    mpirun_dbg.idb

  7. The installation is now complete, and the compiler should be ready for use.

For more complete information about compiler optimizations, see our Optimization Notice.