| July 5, 2009 11:00 PM PDT | |
Navigation:
Linux and Mac OS X Compilers Installation Help Center: http://software.intel.com/en-us/articles/intel-compilers-linux-installation-help/
Problem : I am having trouble installing my Intel Compiler Pro v11.1 on OpenSUSE
Environment : This article was written for OpenSUSE 11.2 and 11.1 but should apply to 11.0 installations as well. This guide applies ONLY to the Intel Compilers Profession Version 11.1 and greater. If you have an older Intel compiler, please upgrade to 11.1. Compatibility of OpenSUSE 11.2 with anything other than Intel Compiler Pro 11.1 is not guaranteed to work - consider getting an older OpenSUSE 10.x or older version to work with your older Intel compiler.
Root Cause : As of this writing OpenSUSE 11.2 is not officially supported by the Intel Compiler Professional edition. The procedures herein are intended to assist the user configure OpenSUSE to support installation of the Intel Compiler Professional Edition. However, this is not a supported configuration. Please see your Release Notes document for a list of officially supported Linux distributions and versions.
The default OpenSUSE installation may not have all the packages needed to support software development (gcc, g++, and binutils packages along with header files). Also, the Intel compiler released versions are targeted and built for distributions available 12-16 months before the compiler is actually released to customers. Thus, by the time development is completed for a particular compiler version, many Linux distributions have progressed forward one or two versions. Intel tries to stay current with Linux distributions, but it often takes us many months after a distribution release to add support. See your Release Notes from the compiler documentation to determine supported distributions and versions.
Resolution : Add several packages to your OpenSUSE installation PRIOR to installation of the compiler.
Procedure:
00) Remove any previous failed installations:
If you have an installation of the Intel Compiler Pro v11.1 on your system from a failed attempt, uninstall it.
/opt/intel/Compiler/11.1/046/bin/[ia32 | intel64]/uninstall_cpro[c | f].sh
substitute your version for "046" above if you have another version besides 11.1.046
0) First determine whether you have installed a 32bit or 64bit version of OpenSUSE. Do this with the uname -a command:
uname -m
which will return:
x86_64 if you have a 64bit installation
i686 if you have a 32bit installation
Based on whether you have a 32bit or 64bit installation, choose one of the 2 procedures below.
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.
1) i686 32bit Installation
a) login as root or super user.
If you do not have the root password or priviledge, check if you have SUDO priviledges.
If you do not have either root/admin or SUDO priviledges STOP. You will be unable to install the Intel compilers on this installation until you are able to add system-wide packages as a root or admin user.
If you use SUDO to gain access, open a root window with this command:
sudo bash
b) Add Base Development and C/C++ Development
start Yast2 in interactive mode. From the root window: yast2
When the graphical admin tool Yast2 opens, there is a button (lower right) for "Software Manager".
Click Software Manager button to open the Software Manager tool.
On this Software Manager window, find the "Filter" pull-down. Set Filter to "Patterns" to display groups of packages in the left-hand list of package groups. Scroll down in this list to find the group named "Development".
Under the "Development" group, select the following package sets to install:
"Base Development"
"C/C++ Development"
in addition, if you are installing the Intel C++ compiler and wish to use Eclipse integration, also install the "Integrated Development Environments"/"Eclipse" package set.
Once these package sets are select, select "Install" to install the developer packages on your system.
c) Install 32bit gcc and g++ 3.3 and make the default
From the terminal window, as root:
zypper install gcc33-32bit
zypper install libstdc++33-32bit
Try the installation of the Intel Compiler at this point. If this does not work, consider doing the following:
rm /usr/bin/gcc
ln -s /usr/bin/gcc-3.3 /usr/bin/gcc
You may now proceed with an installation of the Intel Compilers.
2) x86_64 64bit OS Installation
a) login as root or super user.
If you do not have the root password or priviledge, check if you have SUDO priviledges.
If you do not have either root/admin or SUDO priviledges STOP. You will be unable to install the Intel compilers on this installation until you are able to add system-wide packages as a root or admin user.
If you use SUDO to gain access, open a root window with this command:
sudo bash
b) Add Base Development and C/C++ Development
start Yast2 in interactive mode. From the root window: yast2
When the graphical admin tool Yast2 opens, there is a button (lower right) for "Software Manager".
Click Software Manager button to open the Software Manager tool.
On this Software Manager window, find the "Filter" pull-down. Set Filter to "Patterns" to display groups of packages in the left-hand list of package groups. Scroll down in this list to find the group named "Development".
Under the "Development" group, select the following package sets to install:
"Base Development"
"C/C++ Development"
in addition, if you are installing the Intel C++ compiler and wish to use Eclipse integration, also install the "Integrated Development Environments"/"Eclipse" package set.
Once these package sets are select, select "Install" to install the developer packages on your system.
c) Install gcc and g++ 3.3
From the terminal window, as root:
zypper install gcc33
zypper install libstdc++33
zypper install libstdc++33-32bit (only if you need the 32bit compiler )
At this point you are ready to install the 64bit versions of the Intel Compiler. But before you do, read below:
d) Determine if you want or need to develop 32bit applications
Up to this point you have everything you need to install the 64bit Intel compilers and develop 64bit applications. If this is all you need, locate the Intel compiler tarball named *_intel64.tgz, for example, l_cprof_p_11.1.046_intel64.tgz and install.
IF you want to be able to create 32bit applications AND 64bit applications:
zypper install gcc33-32bit
You may now proceed with an installation of the Intel Compilers. Use the combined IA-32 and Intel64 package, for example l_cprof_p_11.1.046.tgz.
Finishing up: Usage
Once the compilers are installed, it is necessary to source the ifortvars.sh or ifortvars.csh file to properly set the user environment to use the Intel compilers. This (these) commands can be placed in a user's ~/.bashrc or other system login file (fortran 11.1.046 example shown below, bash user):
64bit compiler selection:
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh intel64
32bit compiler selection:
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
C/C++ users: substitute "iccvars" for "ifortvars" above.
Other versions: substitute your actual minor version for "046" above.
Also, if you are a CSH or TCSH user, use ifortvars.csh or iccvars.csh as appropriate.
Using the Compiler:
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/
It is hoped this guide proves helpful for installing the Intel Compilers Professional Edition on an OpenSUSE installation. Please add comments to this article if you have suggestions or tips to improve this guide.
Environment : This article was written for OpenSUSE 11.2 and 11.1 but should apply to 11.0 installations as well. This guide applies ONLY to the Intel Compilers Profession Version 11.1 and greater. If you have an older Intel compiler, please upgrade to 11.1. Compatibility of OpenSUSE 11.2 with anything other than Intel Compiler Pro 11.1 is not guaranteed to work - consider getting an older OpenSUSE 10.x or older version to work with your older Intel compiler.
Root Cause : As of this writing OpenSUSE 11.2 is not officially supported by the Intel Compiler Professional edition. The procedures herein are intended to assist the user configure OpenSUSE to support installation of the Intel Compiler Professional Edition. However, this is not a supported configuration. Please see your Release Notes document for a list of officially supported Linux distributions and versions.
The default OpenSUSE installation may not have all the packages needed to support software development (gcc, g++, and binutils packages along with header files). Also, the Intel compiler released versions are targeted and built for distributions available 12-16 months before the compiler is actually released to customers. Thus, by the time development is completed for a particular compiler version, many Linux distributions have progressed forward one or two versions. Intel tries to stay current with Linux distributions, but it often takes us many months after a distribution release to add support. See your Release Notes from the compiler documentation to determine supported distributions and versions.
Resolution : Add several packages to your OpenSUSE installation PRIOR to installation of the compiler.
Procedure:
00) Remove any previous failed installations:
If you have an installation of the Intel Compiler Pro v11.1 on your system from a failed attempt, uninstall it.
/opt/intel/Compiler/11.1/046/bin/[ia32 | intel64]/uninstall_cpro[c | f].sh
substitute your version for "046" above if you have another version besides 11.1.046
0) First determine whether you have installed a 32bit or 64bit version of OpenSUSE. Do this with the uname -a command:
uname -m
which will return:
x86_64 if you have a 64bit installation
i686 if you have a 32bit installation
Based on whether you have a 32bit or 64bit installation, choose one of the 2 procedures below.
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.
1) i686 32bit Installation
a) login as root or super user.
If you do not have the root password or priviledge, check if you have SUDO priviledges.
If you do not have either root/admin or SUDO priviledges STOP. You will be unable to install the Intel compilers on this installation until you are able to add system-wide packages as a root or admin user.
If you use SUDO to gain access, open a root window with this command:
sudo bash
b) Add Base Development and C/C++ Development
start Yast2 in interactive mode. From the root window: yast2
When the graphical admin tool Yast2 opens, there is a button (lower right) for "Software Manager".
Click Software Manager button to open the Software Manager tool.
On this Software Manager window, find the "Filter" pull-down. Set Filter to "Patterns" to display groups of packages in the left-hand list of package groups. Scroll down in this list to find the group named "Development".
Under the "Development" group, select the following package sets to install:
"Base Development"
"C/C++ Development"
in addition, if you are installing the Intel C++ compiler and wish to use Eclipse integration, also install the "Integrated Development Environments"/"Eclipse" package set.
Once these package sets are select, select "Install" to install the developer packages on your system.
c) Install 32bit gcc and g++ 3.3 and make the default
From the terminal window, as root:
zypper install gcc33-32bit
zypper install libstdc++33-32bit
Try the installation of the Intel Compiler at this point. If this does not work, consider doing the following:
rm /usr/bin/gcc
ln -s /usr/bin/gcc-3.3 /usr/bin/gcc
You may now proceed with an installation of the Intel Compilers.
2) x86_64 64bit OS Installation
a) login as root or super user.
If you do not have the root password or priviledge, check if you have SUDO priviledges.
If you do not have either root/admin or SUDO priviledges STOP. You will be unable to install the Intel compilers on this installation until you are able to add system-wide packages as a root or admin user.
If you use SUDO to gain access, open a root window with this command:
sudo bash
b) Add Base Development and C/C++ Development
start Yast2 in interactive mode. From the root window: yast2
When the graphical admin tool Yast2 opens, there is a button (lower right) for "Software Manager".
Click Software Manager button to open the Software Manager tool.
On this Software Manager window, find the "Filter" pull-down. Set Filter to "Patterns" to display groups of packages in the left-hand list of package groups. Scroll down in this list to find the group named "Development".
Under the "Development" group, select the following package sets to install:
"Base Development"
"C/C++ Development"
in addition, if you are installing the Intel C++ compiler and wish to use Eclipse integration, also install the "Integrated Development Environments"/"Eclipse" package set.
Once these package sets are select, select "Install" to install the developer packages on your system.
c) Install gcc and g++ 3.3
From the terminal window, as root:
zypper install gcc33
zypper install libstdc++33
zypper install libstdc++33-32bit (only if you need the 32bit compiler )
At this point you are ready to install the 64bit versions of the Intel Compiler. But before you do, read below:
d) Determine if you want or need to develop 32bit applications
Up to this point you have everything you need to install the 64bit Intel compilers and develop 64bit applications. If this is all you need, locate the Intel compiler tarball named *_intel64.tgz, for example, l_cprof_p_11.1.046_intel64.tgz and install.
IF you want to be able to create 32bit applications AND 64bit applications:
zypper install gcc33-32bit
You may now proceed with an installation of the Intel Compilers. Use the combined IA-32 and Intel64 package, for example l_cprof_p_11.1.046.tgz.
Finishing up: Usage
Once the compilers are installed, it is necessary to source the ifortvars.sh or ifortvars.csh file to properly set the user environment to use the Intel compilers. This (these) commands can be placed in a user's ~/.bashrc or other system login file (fortran 11.1.046 example shown below, bash user):
64bit compiler selection:
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh intel64
32bit compiler selection:
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
C/C++ users: substitute "iccvars" for "ifortvars" above.
Other versions: substitute your actual minor version for "046" above.
Also, if you are a CSH or TCSH user, use ifortvars.csh or iccvars.csh as appropriate.
Using the Compiler:
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/
It is hoped this guide proves helpful for installing the Intel Compilers Professional Edition on an OpenSUSE installation. Please add comments to this article if you have suggestions or tips to improve this guide.
Do you need more help?
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 (7) 
| August 11, 2009 7:32 AM PDT
intelmu
|
Hello, i am having trouble on my x86_64, despite satisfying all the points you mention here, libraries, sources, all is ok. When compiling, i keep having this answer: ld: /opt/intel/Compiler/11.1/046/bin/intel64/lib/for_main.o: No such file: No such file or directory it is indeed looking for it at the wrong place, since it is: /opt/intel/Compiler/11.1/046/lib/intel64/for_main.o. what could i do ?? Thank you.. |
| September 21, 2009 3:31 AM PDT
hiroshi-murakami
|
I have noticed on the Fedora 11 (or possibly 10) that when the environment variable LANG is set like ja_JP.EUC-JP, then the installation process of intel Compiler suite both C++ and Fortran will not end ( "sed" runs forever). To overcome this difficulty, just set the environment variable LANG to C like: # LANG=C; export LANG; And then the installation of the compiler suite will do right. |
| April 12, 2010 10:24 AM PDT
Abhijit Bhattacharyya |
Hi! I have followed all the instructions described here to install IFORT for the 64 bit OpenSUSE 11.2 OS on Dell Studio XPS 16 and it works. This instruction is just perfect. Thanks a lot. |
| December 11, 2010 8:07 AM PST
praneeth |
linux-zga2:/opt/intel/compilerpro-12.0.0.084/bin # sh compilervars.sh ERROR: Unknown switch ''. Accepted values: ia32, intel64 compilervars.sh: line 14: return: can only `return' from a function or sourced script Unsupported platform in idbvars.sh ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64 This the error i am getting. so please any one tell wat is this and how to overcome this... IS opensuse unsupported platform for intel c++ |
| September 26, 2011 4:21 AM PDT
Michal Kvasnicka
| Could you update this page to openSUSE 11.4? |
| January 16, 2012 3:20 AM PST
Michal Kvasnicka
| Any update for openSUSE 12.1??? |
Trackbacks (0)
Leave a comment 
To obtain technical support, please go to Software Support.
Author
Ronald W. Green (Intel)
|



TimP (Intel)
-1,956,212
As Ron advised, the gcc-33 32-bit installation appears to be required to support 32-bit ifort on SuSE x86_64. Unfortunately, this interferes with C++, so I didn't find a suitable way to support Intel 32-bit compilers for both Fortran and C++ on the 64-bit installation.
When installing the Intel compilers, you may expect to see the message about missing prerequisites. The SuSE 11.1 glibc is in fact newer than what has been tested with ifort, but it appears to work. There is also a message saying that binutils is not supported or not detectable; this message is always issued for any "unsupported" installation, and has no meaning. The binutils provided by OpenSuSE C++ development package actually is in the supported range.