Using Intel(R) Compilers for Linux under Fedora

Submit New Article

March 22, 2009 12:00 AM PDT


Navigation:

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

 

Using Intel Compilers for Linux with Fedora

Introduction:

Beta and recent versions of Fedora may NOT be officially supported by Intel Compilers.  Please see your ReleaseNotes document with your compiler to find the support 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.  You are on your own here.

Using Intel® Compilers under Fedora (11 through 15) [by Ron W. Green].  For older FC distributions, skip below to information on those older distros.

In order to use Intel(R) Compilers (C++  or  Fortran) under Fedora 15, you will need the latest version of the Intel compiler(s).   Do NOT try to install older Intel Compilers such as 11.0, 10.x, 9.x or 8.x under Fedora Core 15: 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.

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 file.  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(R) C++ Compiler for Linux or the Intel(R) Fortran Compiler for Linux, on your fresh Fedora 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.

Hopefully, during the installation of Fedora Core 15 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

By default, Fedora 15 uses and ships gcc 4.6. 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++

2.A: (version 12.x and above): If you are installing the combined IA32/Intel64 compiler kit OR just the IA32 kit  on a 64bit OS, this installation will also require a 32bit, i686 version, of libstdc++.  Again, if you don't need 32bit development, go back to IRC and download ONLY the 64bit compiler package, l_fcompxe..._intel64.tgz and do not install all the 32bit development libraries.  For 64bit only environment, skip this step:

yum install libstdc++.i686

(and all it's dependencies:

Installing for dependencies:

glibc                               i686

libgcc                             i686

nss-softokn-freebl           i686

and

yum install glibc-devel.i686


2.B: (version 11.1 and older compilers ):  Next, you MAY 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. Again, this is needed if you install both the IA32/Intel64 compilers OR just the IA32 compiler on a 64bit OS.  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:FC11, compat-libstdc++-33.i586)
yum install glibc-devel.i686                     (note:FC11, glibc-devel.i586)


For BOTH Intel 64 and IA32:
If you want to link statically, that is with -static or -fast (which contains -static), you will need the static versions of glibc.  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

if you want to install the 32bit versions of glibc-static you will need to find an .i586 version of glibc-static

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

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:  http://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/

 

OLDER FC distributions

 

 

Using Intel® Compilers under Fedora (7, 8, 9, 10)

In order to use Intel(R) Compilers (C++  or  Fortran) under Fedora 9, you will need the latest 11.0 version of the Intel compiler(s). The upcoming compiler version 11.1 (presently in Beta) works properly with Fedora 10. The 10.1 version should work fine with Fedora 8, Fedora 7, and Fedora 6, while much older versions 9.1 or 9.0 may not.

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(R) C++ Compiler for Linux or the Intel(R) Fortran Compiler for Linux, on your fresh Fedora installation, 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

By default, Fedora 9 uses and ships gcc 4.3. 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.

yum install gcc
yum install gcc-c++

2. Next, 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/

For Fedora 9, libstdc++.so.5 comes from the RPM package compat-libstdc++-33-3.2.3-63.i386.  Please refer to
your Linux distributor's installation materials for installation procedure, and details thereof on the specific
compatibility standard C++ library package that provides the required libstdc++.so.5 library.

3. For building a 32-bit application on 64-bit Fedora system, also ensure that the GNU C library glibc is installed. For
Fedora 9, glibc-2.8-3.i686 has to be installed. Refer to http://fedoraproject.org/ for more details.

4. Finally, there is an optional package to consider: The 11.0 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. This can be done at anytime after the installation of the compiler.
However, you will get a warning message about 'missing prerequisite' for the JRE - simply ignore that message and
proceed with the installation. OR to avoid that message and enable the graphical IDE, get the latest JRE from:

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

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


Using the Compiler:

The next step after installing the compiler is to set up the user environment to use the compiler and libraries.  First, locate your documentation:  it is installed in <installdir>/Documentation/en_US   (currently, US English is the language supported in the documentation).   Under this directory, read the <installdir>/Documentation/en_US/getting_started_f.pdf or getting_started_c.pdf document.  Read how to use iccvars.sh or ifortvars.sh (or the .csh equivalents) to set your environment to use the compiler(s).  You may wish to put the 'source ifortvars.....' command into your home startup scripts.

Next, use a browser to open <installdir>/Documentation/en_US/documentation_f.htm or documentation_c.htm which is an index to the rest of the online documents.  Browse the documents to familiarize yourself with their locations and contents.

Need more help?  Join our User Forums:
Fortran: http://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/
C/C++: http://software.intel.com/en-us/forums/intel-c-compiler/


Notes:
1. To purchase/evaluate: http://software.intel.com/en-us/intel-compilers/
2. To get older compiler versions: http://software.intel.com/en-us/articles/older-version-product/



Do you need more help?


This article applies to: Intel® C++ Compiler for Linux* Knowledge Base,   Intel® Fortran Compiler for Linux* Knowledge Base