Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29391 Discussions

Installing Fortran compiler on CentOS 5.3

oafrumento
Beginner
2,198 Views
Hi,

I'm trying to install fortran compiler (11.1.046) on a CentOS 5.3 (64) linux box and step 4 reports:

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

How can I deal whit these issues?

CentOS should be similar to Red Hat Enterprise Linux.
Kernel version:
2.6.18-128.el5

Thanks a lot,

oscar
0 Kudos
11 Replies
TimP
Honored Contributor III
2,198 Views
If you installed g++ in the linux install package selection menu, glibc-devel should have been installed automatically. If either of those are missing (in the g++ -m32 flavor if you are trying to install ifort ia32), you could expect this message.
rpm -qa glibc would show whether glibc was installed by rpm (the expected way).
0 Kudos
oafrumento
Beginner
2,198 Views
Quoting - tim18
If you installed g++ in the linux install package selection menu, glibc-devel should have been installed automatically. If either of those are missing (in the g++ -m32 flavor if you are trying to install ifort ia32), you could expect this message.
rpm -qa glibc would show whether glibc was installed by rpm (the expected way).

following glibc packages have been installed:
glibc-2.5-34.i686
glibc-2.5-34.x86_54
glibc-common-2.5-34.x86_64
glibc-devel-2.5-34.i386
glibc-devel2-5-34.x86_64
glibc-headers-2.5-34.x86_64
kernel-headers-2.6.18-128.el5.x86_64

rpm -qa glibc reports:
glibc-2.5-34
......


0 Kudos
TimP
Honored Contributor III
2,198 Views
So it looks like all the glibc versions are there, and by inference, both flavors of g++ ought to be there. If g++ -print-search-dirs and g++ -m32 -print-search-dirs are working, it doesn't look like the installer is justified in complaining. If it's simply complaining about a newer minor version of glibc than the one it was tested with, that's a bug, although CentOS isn't tested for compatibility. I suppose, you should be able to accept the supposed discrepancy and complete the installation. I'm fairly certain I've installed on what ought to be a matching Red Hat version, without seeing that particular complaint.
0 Kudos
Ron_Green
Moderator
2,198 Views
Quoting - tim18
So it looks like all the glibc versions are there, and by inference, both flavors of g++ ought to be there. If g++ -print-search-dirs and g++ -m32 -print-search-dirs are working, it doesn't look like the installer is justified in complaining. If it's simply complaining about a newer minor version of glibc than the one it was tested with, that's a bug, although CentOS isn't tested for compatibility. I suppose, you should be able to accept the supposed discrepancy and complete the installation. I'm fairly certain I've installed on what ought to be a matching Red Hat version, without seeing that particular complaint.

If I remember, Fedora/RHEL/CentOS also need libcompat, read about this here:

http://software.intel.com/en-us/articles/using-intelr-compilers-for-linux-under-fedora/

and check that the 32bit stdc++ compatibility library is installed, should be an rpm similar to the FC9 rpm compat-libstdc++-33-3.2.3-63.i386

worse case, try the silent installation http://software.intel.com/en-us/articles/intel-compilers-for-linux-version-111-silent-installation-guide/
0 Kudos
oafrumento
Beginner
2,198 Views

If I remember, Fedora/RHEL/CentOS also need libcompat, read about this here:

http://software.intel.com/en-us/articles/using-intelr-compilers-for-linux-under-fedora/

and check that the 32bit stdc++ compatibility library is installed, should be an rpm similar to the FC9 rpm compat-libstdc++-33-3.2.3-63.i386

worse case, try the silent installation http://software.intel.com/en-us/articles/intel-compilers-for-linux-version-111-silent-installation-guide/
well, it seems libraries and dependencies are installed.
Have checked in http://software.intel.com/en-us/articles/using-intelr-compilers-for-linux-under-fedora/; here the version in glibc (for fedora 9) is 2.8-3.i686, while centos 5.3 installed glibc-2.5-34 (quite similars both libraries).

Now, what to do: ignore discrepancies and continue with installation (suggestion 1) or proceed whit "silent installation" (suggestion 2)?
0 Kudos
Ron_Green
Moderator
2,198 Views
Quoting - oafrumento
well, it seems libraries and dependencies are installed.
Have checked in http://software.intel.com/en-us/articles/using-intelr-compilers-for-linux-under-fedora/; here the version in glibc (for fedora 9) is 2.8-3.i686, while centos 5.3 installed glibc-2.5-34 (quite similars both libraries).

Now, what to do: ignore discrepancies and continue with installation (suggestion 1) or proceed whit "silent installation" (suggestion 2)?

Ignore dependencies and continue with manual installation.

ron
0 Kudos
oafrumento
Beginner
2,198 Views

Ignore dependencies and continue with manual installation.

ron
silent installation successful.
thanks a lot.

additional advices?

oscar

0 Kudos
Ron_Green
Moderator
2,198 Views
Quoting - oafrumento
silent installation successful.
thanks a lot.

additional advices?

oscar


Test both 64 bit and 32 bit compilers. Assuming you have a hello.f90 simple program

source /opt/intel/Compiler/11.1/056/bin/ifortvars.sh intel64
ifort -o hello hello.f90
./hello

source /opt/intel/Compiler/11.1/056/bin/ifortvars.sh ia32
ifort -o hello hello.f90
./hello

both should work.
0 Kudos
oafrumento
Beginner
2,198 Views

Test both 64 bit and 32 bit compilers. Assuming you have a hello.f90 simple program

source /opt/intel/Compiler/11.1/056/bin/ifortvars.sh intel64
ifort -o hello hello.f90
./hello

source /opt/intel/Compiler/11.1/056/bin/ifortvars.sh ia32
ifort -o hello hello.f90
./hello

both should work.
it's ok.
both compilers work.
thanks again.
regards.

oscar
0 Kudos
craig_henryyale_edu
2,198 Views
Quoting - oafrumento
Hi,

I'm trying to install fortran compiler (11.1.046) on a CentOS 5.3 (64) linux box and step 4 reports:
.
.
Missing optional pre-requisite
-- cannot determine operating system type
-- system glibc or kernel version not supported or not detectable


Thanks a lot,

oscar
mv /etc/redhat-release /etc/ORIG.redhat-release
echo "Red Hat Enterprise Linux Server release 5.3 (Tikanga)" > /etc/redhat-release
this will clear up both the reported operating system and the glibc issue
(note the pathing on glibc dirs also contains redhat labelling)
this workaround is also useful for other installs such as Dell OpenManage
0 Kudos
Kevin_D_Intel
Employee
2,198 Views
mv /etc/redhat-release /etc/ORIG.redhat-release
echo "Red Hat Enterprise Linux Server release 5.3 (Tikanga)" > /etc/redhat-release
this will clear up both the reported operating system and the glibc issue
(note the pathing on glibc dirs also contains redhat labelling)
this workaround is also useful for other installs such as Dell OpenManage

What's the value in doing this when one can proceed with the installation anyway?
0 Kudos
Reply