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

intel

mmacleod
Beginner
1,697 Views

Hello,

I'm using the intel 11.1 fortran compiler, ifort ,on a 64bit version of Fedora 11 with no luck. I get the following error message when I try to use the compiler.

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

I was wondering if there is anything I can do about this or do I have to wait for a new ifort that supports Fedora 11.

Thanks!

Matthew

0 Kudos
5 Replies
TimP
Honored Contributor III
1,697 Views
The usual method for finding the shared libraries at run time is to set LD_LIBRARY_PATH, which is one of the functions of sourceing the ifortvars script. Naturally, there are other ways, but nothing will change here according to whether FC11 is "supported." You need the libcompat, as described in the advice about Fedora Core posted at the top of the forum.
0 Kudos
mmacleod
Beginner
1,697 Views

Thanks for your reply tim18. I am a bit confused b/c I did source the ifortvars script,

. /opt/intel/Compiler/11.1/064/bin/intel64/ifortvars_intel64.sh

and have the LD_LIBRARY_PATH set accordingly, namely,

LD_LIBRARY_PATH=/opt/intel/Compiler/11.1/064/lib/intel64

so the error,

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

seems strange to me, I have the libstdc package installed, anyway, why can't this fortcom find the shared libs?

0 Kudos
eliosh
Beginner
1,697 Views

I think recent Linux distrubutions have no libstdc++.so.5

You should either link your existing libstdc++.so.6 or install a libstdc++5 packages from an older version of your Linux.

0 Kudos
Kevin_D_Intel
Employee
1,697 Views

fortcom expects to find /usr/lib64/libstdc++.so.5 (see below).

The 11.1 installation currently requires the 32-bit version found under /usr/lib.

Double-check that this 64-bit version is installed too.

[bash]$ ldd /opt/spdtools/compiler/cpro/Compiler/11.1/064/bin/intel64/fortcom
        libm.so.6 => /lib64/libm.so.6 (0x0000003c66600000)
        libstdc++.so.5 => /usr/lib64/libstdc++.so.5 (0x00002aaaaaad6000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003c6ae00000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003c66200000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003c66a00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003c65a00000)[/bash]
0 Kudos
TimP
Honored Contributor III
1,697 Views
Sorry about mis-reading the thread earlier. The question about how to install the libstdc++.so.5 is addressed in the advice about Fedora posted at the top of the forum. The current 64-bit compiler requires both the 32- and 64-bit copies of this RedHat 4 library. You could wait a long time for ifort to abandon the backward compatibility and run with current libstdc++, particularly while the old libraries remain as an option even in distros which ifort doesn't support.
0 Kudos
Reply