Using Intel Compilers for Linux Under Redhat Enterprise Linux or CentOS

Using Intel Composer XE 2011 (Compiler XE 12.0) and Compiler Pro 11.1 for Linux with RHEL 6

Navigation:

Linux and Mac OS X Compilers Installation Help Center: /en-us/articles/intel-compilers-linux-installation-help

 

Introduction:

Please see your ReleaseNotes document with your compiler to find the supported Linux distributions and versions.  These instructions are merely to help install the compiler, keep in mind that versions of this distribution NOT in the ReleaseNotes document are NOT tested nor supported. 

Using Intel® Compilers under RHEL 6 by Ron W. Green.  For older RHEL distributions, skip below to information on those older distros.

COMPATIBLE Linux Versions: Beta and recently released versions of RHEL may NOT be officially supported by Intel Compilers.  Please see your ReleaseNotes document with your compiler to find the supported Linux distributions and versions.  These instructions are merely to help install the compiler, keep in mind that versions of this linux distribution NOT in the ReleaseNotes document for your compiler version are NOT tested nor supported.

COMPATIBLE Intel Compiler Versions: In order to use Intel® Compilers (C++  or  Fortran) under the lastest release of RHEL, you will need the latest version of the Intel compiler(s).   Do NOT try to install older Intel Compilers such as 12.x, 11.0, 10.x, 9.x or 8.x under Fedora Core 16 or newer: they will not install easily and probably will not work - and they are NOT supported.  If you need an older Intel Compiler version, please read their ReleaseNotes and obtain an older, supported distribution (read this): http://software.intel.com/en-us/articles/older-version-product

Also, determine your needs and get the right installation tarball.  Most linux users are on 64bit systems with x86_64 versions of linux installed.  Do you need to create older 32bit applications?  If not, download the Intel 64 ONLY tarball, the *_intel64.tgz named package.  Not only does this save download time, this will eliminate your need to install 32bit libraries on the development system.

If you have active support for your compiler, you can download the latest Intel compiler version from the Intel Registration Center at:
https://registrationcenter.intel.com

BEFORE YOU INSTALL the Intel® Compiler for Linux on your RHEL 6 installation you will need to disable SELinux OR set SELinux to "Permissive".  As root, edit /etc/sysconfig/selinux and either disable SELinux or set it "Permissive" - then reboot.

PREREQUISITE RPM PACKAGES: Hopefully, during the installation of the OS you selected a profile for a "Software Development" configuration.  This installs the proper gcc/g++/binutils and other necessary development packages.  If not, set it up as a development platform.  You will first need to install several packages that are prerequisites to preparing the system to serve as a development platform:

1. Check that GNU gcc and g++ are installed on the system. By default you can simply check by executing the
command:

gcc --version

If for some reason, you do not have gcc installed, then go ahead
and install gcc and g++ on your system. You can use the software package manager “yum” to do the install. Refer
to http://fedoraproject.org/wiki/Tools/yum to learn more on yum.

As root user, in a terminal window:
yum install gcc
yum install gcc-c++

STATIC LIBRARIES:  Do you intend to link statically OR do you intend to use compiler option -fast which includes -static?  Read this article NOW
error "ld: cannot find -lm"


Keep in mind that static linking is being discouraged by the larger linux community.  You may, of course, use -static-intel to statically link the Intel libraries.  However, if you want to also statically link the system libraries in glibc you will need the static versions of glibc.

x86_64:
yum install glibc-static.x86_64

IA32 (only if you want to install the 32bit compiler):
yum install glibc-static.i686

(if yum cannot find the static 32bit versions of glibc-static you will need to find an rpm source.  Use rpmfind or some other web search to find an appropriate 32bit version of glibc-static that matches the 64bit version you installed above with yum).

4. Finally, there is an optional package to consider: The 11.x version of the Intel Compiler for Linux has a graphical
debugger, a new graphical interface for the IDB debugger. If you want to use this debugger, please make sure to
install the JAVA JRE version 1.5 or higher.

check that java JRE is installed:
java -version
or
java --version

(note: compilers older than 11.1.064 had issues finding installed java JREs.  Please upgrade to new compiler OR ignore the 'missing java' prerequisite check)

If java is missing, you may get the latest JRE from:

http://java.com/en/download/manual.jsp

UMASK before you install:  If you will install as root or use sudo for the installation, check the umask setting for your root user:
#   umask
or
sudo bash ; umask

the value should be 0022.  If not, set it to 0022 so that the files you install are readable by non-root users:
umask 0022

INSTALLATION
untar the package tarball in a scratch directory such as /tmp.  tar -zxvf l_fcompxe_2013.x.yyy[_intel64 | _ia32].tgz
cd into the extracted directory
./install.sh and follow the instructions.

OLDER COMPILERS and RHEL:  For Intel Compiler Professional Edition v11.1 ONLY:

In addition to the above, if you have an older v11.1 version of the Intel Compilers for Linux, you need to do the following:

You will need to ensure that the 32-bit version of the standard C++ library, libstdc++.so.5 (typically found
in /usr/lib/ directory) is installed on the system. The Intel® C++ and Fortran compilers for Linux installation require
the linkage to the 32-bit version of libstdc++.so.5 library on all Linux distributions. Failure to do so will result in 
installation failure on library dependencies not met. For more details, refer to the article at:

http://software.intel.com/en-us/articles/performance-tools-for-software-developers-intel-compiler-10x-installation-failure-libstdc-failed-dependencies/

as root user, in a terminal window, install the compatibilty library libstdc++.so.5 for 32bit AND the 32bit glibc-devel libraries
yum install compat-libstdc++-33.i686      (note: name in older RHEL, compat-libstdc++-33.i586)
yum install glibc-devel.i686                     (note: name in older RHEL, glibc-devel.i586)

if you have a 64bit x86_64 RHEL system, you also need to install the 64 bit version of compat-libstdc++
yum install compat-libstdc++-33.x86_64

Once installation of above prerequisites is complete, you are ready to start the Intel compiler(s) installation!

If you have problem even after following this guide, DO NOT leave comments - instead, go to our User Forum and submit a problem report:  For Fortran, http://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/ and for C++, /en-us/forums/intel-c-compiler/ .

Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.