| 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:
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)
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/
This article applies to: Intel® C++ Compiler for Linux* Knowledge Base, Intel® Fortran Compiler for Linux* Knowledge Base
For more complete information about compiler optimizations, see our Optimization Notice.
Comments (14) 
| July 7, 2009 3:02 PM PDT
John Babin |
I too ran into the missing libstdc++.so.5 on Fedora 10. Installer couldn't find it. Don't know if it was there to begin with but did: yum groupinstall "Legacy Software Development" Still no luck, however there was libstdc++.so.5 under /usr/lib64, maybe on a 64 bit system Installer and compiler should be able to figure it out. I did a link: ln -s /usr/lib64/libstdc++.so.5 /usr/lib/libstdc++.so.5 Installer is now happily running. Keeping my fingers crossed on compiles succeeding. |
| July 9, 2009 8:12 AM PDT
angelo1903
|
I installed step by step satifactoriamente!, But: How to know if it is improperly installed, the compiler? enter ifort-V and I get a message stating that no such file! What? |
| July 11, 2009 11:09 PM PDT
srini |
I am having fedora 10 x86-64 oS on my desk top. I would like to install the 64 bit version of fortran and C in it. Downloaded l*intel64 compilers from intel and tried. I solved the libstdc++.so.5 by linking with /usr/lib file. now it says g++ environment missing. I tried yum install g++, it says not available. where do i get it and is there any method to go around it?! |
| July 11, 2009 11:12 PM PDT
srini |
Also please note that I an having copiler versions 11.1, and when yum is executed it searches for x86-64 rpm. will g++ for 64 bit and 32-bit makes any difference? thanks in advance! |
| July 13, 2009 5:35 PM PDT
Kittur Ganesh (Intel)
|
Hi, The procedure to get a quick response and resolution for any issue(s) or question(s) on the product, is to visit the Intel Software Network User Forums (links given below), create and submit a forum post. * The links to all the available forums: http://software.intel.com/en-us/forums/ * Link to the Intel (R) C++ Compiler Forum is: http://software.intel.com/en-us/forums/ * Link to the Intel (R) Parallel Studio Forum is: http://software.intel.com/en-us/forums/intel-parallel-studio/ * Link to the Tools Knowledge Base: http://software.intel.com/en-us/articles/tools Note: The tools knowledge base is a good resource to find a lot of articles, BKM, FAQ etc. With that said, here's some useful info: 1. Please refer to the following forum posts that answers the issue involving libstdc++.so.5 related questions: http://software.intel.com/en-us/forums/intel-c-compiler/topic/63007/ http://software.intel.com/en-us/forums/intel-fortran-compile.....pic/62836/ http://software.intel.com/en-us/forums/intel-c-compiler/topic/61283/ 2). To make sure you've successfully installed the compiler, executing the following command should output the compiler version found in the path: Example: % ifort -V Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 10.1 Build 20090615 .... 3) You can install g++ using yum or apt (ex: "% apt-get install g++") Please use the forums if you have any additional questions or issues in the future, appreciate much. -regards. |
| July 17, 2009 7:51 AM PDT
alexandregadelha |
Hi, I'm using fedora 11 and I'm trying to install intel compiler v11.1.038. During installation process, I received some problems with pre-requisites. they are: Step no: 4 of 7 | Installation configuration - Missing Optional Pre-requisite ----------------------------------------------------------------- --------------- There is one or more optional unresolved issues. It is highly recommended to fix it all before you continue the installation. You can fix it without exiting from the installation and re-check. Or you can quit from the installation, fix it and run the installation again. ----------------------------------------------------------------- --------------- Missing optional pre-requisite -- cannot determine operating system type -- system glibc or kernel version not supported or not detectable ----------------------------------------------------------------- --------------- Well I think that the first information, about operating system type, is determined through some routine that extract this information using uname command. So, typing uname -a, the set of my operating system appears as: [WRF@TUFAO 32]$ uname -a Linux TUFAO 2.6.29.5-191.fc11.i686.PAE #1 SMP Tue Jun 16 23:19:53 EDT 2009 i686 i686 i386 GNU/Linux The next issue is about glibc or kernel. Typing rpm -qa | grep glibc returns: glibc-2.10.1-2.i686 glibc-devel-2.10.1-2.i586 glibc-headers-2.10.1-2.i586 glibc-common-2.10.1-2.i586 and typing rpm -qa | grep kernel, returns: kernel-PAE-2.6.29.5-191.fc11.i686 kerneloops-0.12-5.fc11.i586 kernel-devel-2.6.29.5-191.fc11.i586 kernel-PAE-devel-2.6.29.4-167.fc11.i686 kernel-headers-2.6.29.5-191.fc11.i586 kernel-firmware-2.6.29.5-191.fc11.noarch kernel-PAE-2.6.29.4-167.fc11.i686 kernel-PAE-devel-2.6.29.5-191.fc11.i686 Skipping these problems with optional pre-requisites, I proceeds with installation and at step 6 I receive the following message: Installing Intel(R) Fortran Compiler for applications running on IA-32 component... Intel(R) Fortran Compiler for applications running on IA-32 component installed successfully. ----------------------------------------------------------------- --------------- Installing Intel(R) Debugger for applications running on IA-32 component... Intel(R) Debugger for applications running on IA-32 component installed successfully. ----------------------------------------------------------------- --------------- Installing Intel(R) Math Kernel Library for applications running on IA-32 component... Intel(R) Math Kernel Library for applications running on IA-32 component installed successfully. But when I type ifort, nothing happens!! When I try to type that inside /opt/intel/Compiler/11.1/038/bin/ia32 directory, the system give me the following message: [WRF@TUFAO ia32]$ ifort ifort: error #10310: Failed to enable trusted storage check for licensing: WARNING: Enable Trusted Storage failed (flexnet error code 2). Trusted Storage based license could I would like to know if someone else had these problems too, and if someone could help me! Thanks a lot !!!!! |
| July 23, 2009 12:07 AM PDT
phantomm |
To alexandregadelha, Hi! I also use Fedora 11, i586, with the same compiler version, and I have the same problems with detecting my system, glib, etc. The only difference that I see is that I install it as a normal user, without root access, and I install it in my home directory. After the installation, when I run "sh ~/intel/Compiler/11.1/038/bin/ia32/ifortvars_ia32.sh" everything is ok - no error is submitted, but the paths are not set to use the ifort binaries and libraries. However, when I run the compiler inside the ifort directory, or invoke it by the full path (~/intel/Compiler/11.1/038/bin/ia32/ifort -o sort1.x sort1.f90) everything is ok. Hope being helpful! |
| August 24, 2009 10:16 PM PDT
mwbromley
|
Thanks for the Fedora hint page... for Fedora 11, before installing the compiler 'yum install compat-libstdc++-33.i586' seemed to do the trick for me on an x86_64 system (as opposed to 'yum install compat-libstdc++-33' which installs to /usr/lib64/libstdc++.so.5). |
| February 18, 2010 9:40 AM PST
John O (Intel)
|
Thanks! This (yum install compat-libstdc++-33.x86_64) worked on FC12 w/ icc 11.1.064 for 64-bit compilers. thanks, and yes you guys rock!, John |
| March 5, 2010 4:11 PM PST
pit | Thanks a lot !!! |
| July 19, 2011 4:47 AM PDT
caza
|
hi i have a big ptoblem i use fedira 12, 32 bit i have delete intel fortan compiler 12 with out uninstalation so when i try to install it again or another old version this message is appear The Intel(R) Composer XE 2011 Update 3 for Linux* is already installed. If you want to reinstall the Intel(R) Composer XE 2011 Update 3 for Linux* please uninstall current version and run install script again. how to uninstall it now thank's in advance |
| July 19, 2011 9:21 PM PDT
Feilong H. (Intel)
|
caza, You may use "rpm -qa" to search for Intel Fortran Composer XE RPM packages. Then use "rpm -e --force" to remove those packages. Now you should be able to install by running install script again. |
| February 3, 2012 10:42 PM PST
p_amit123
|
Thangs a lot |
Trackbacks (1)
- centOS 5.5安装ICC 11.1.073
September 26, 2010 3:00 AM PDT
Leave a comment 
Ronald W. Green (Intel)
| ||
Kittur Ganesh (Intel)
| ||
Feilong H. (Intel)
|



jst123
35