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

problem with libstdc++.so.5 using intel fortran compiler 11.0

jstaubin
Beginner
1,745 Views

I have installed the intel fortran compiler on my system (Linux redhat 3.4.3) with only one error message where the installation could not recognize the operating system. Other than that, the installation went fine. I have added the line

"source /bin/ifortvars.sh intel64"

to the .bashrc file as required. When trying to use the fortran compiler, I get the error:

/bin/intel64/fortcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Now, the problem is that I DO have the compatibility standard C++ library compat-libstdc++ installed and the 'missing' libstdc++.so.5 file is in /usr/lib/libstdc++.so.5 where it should be. There was no error about this during the install which to me means that the install found the libstdc++.so.5 file. How come it doesn't find it now? I'd appreciate any help at all. Thanks.

0 Kudos
1 Solution
Kevin_D_Intel
Employee
1,745 Views

The Intel 64 compiler in the 11.0 release is a native 64-bit executable and requires /usr/lib64/libstdc++.so.5 andnot the 32-bit version you indicate finding on your system.

Does the Intel 64 compiler work if you source ifortvars.sh directory under the working shell?

Could you share the uname a output from your system also?

View solution in original post

0 Kudos
4 Replies
Kevin_D_Intel
Employee
1,746 Views

The Intel 64 compiler in the 11.0 release is a native 64-bit executable and requires /usr/lib64/libstdc++.so.5 andnot the 32-bit version you indicate finding on your system.

Does the Intel 64 compiler work if you source ifortvars.sh directory under the working shell?

Could you share the uname a output from your system also?

0 Kudos
jstaubin
Beginner
1,745 Views

The Intel 64 compiler in the 11.0 release is a native 64-bit executable and requires /usr/lib64/libstdc++.so.5 andnot the 32-bit version you indicate finding on your system.

Does the Intel 64 compiler work if you source ifortvars.sh directory under the working shell?

Could you share the uname a output from your system also?

Thank you for your response. I cannot use the compiler even if I source the ifortvars.sh directory in the working shell. You are also correct that I do not have a libstdc++.so.5 file in my lib64 directory (which is most likely the problem). I am working at finding the correct 64 bit version of compat-libstdc++ for Linux Redhat 4 - do you know where to find it?

also:

uname -a

Linux mpclus06 2.6.9-42.0.2.EL #1 Wed Aug 23 13:03:03 BST 2006 x86_64 x86_64 x86_64 GNU/Linux

Thanks again for your help

0 Kudos
Kevin_D_Intel
Employee
1,745 Views

Sounds like you installed the i386 compat-libstdc++. You need the x86_64. Probably best to check with Red Hat first.

On our Red Hat EL 4.3 system, the required versions originates from the following RPM package:

$ rpm -q -filesbypkg compat-libstdc++-33-3.2.3-47.3

compat-libstdc++-33 /usr/lib/libstdc++.so.5

compat-libstdc++-33 /usr/lib/libstdc++.so.5.0.7

compat-libstdc++-33 /usr/lib64/libstdc++.so.5

compat-libstdc++-33 /usr/lib64/libstdc++.so.5.0.7

The rpm version at the URL below may work for you, but again, check with Red Hat too:

http://rpm.pbone.net/index.php3/stat/4/idpl/1824545/com/compat-libstdc++-33-3.2.3-47.3.x86_64.rpm.html

0 Kudos
TimP
Honored Contributor III
1,745 Views

You would get this libstdc++ and a bunch of other stuff you need by installing the (64-bit)gcc-c++ development option, either in Add/Remove Software or in the original installation.

0 Kudos
Reply