Problem in finding libraries during execution program in fortran

Problem in finding libraries during execution program in fortran

I have installed the Intel visual fortran for Linux. When I 
compile a source '.f' it generates de executable, but when I 
try to run this executable the following error 
message appears:

'error while loading standar libraries; libsxa.so.5: cannot 
open shared object file: no such file or directory.

With the purpose to solve this problem I modified 
the .bash_profile that exists in my home directory, adding 
the corresponding paths to link the required objects in the 
install directory (opt/intel_fc_80/lib) and also add
the environmental variable: LD_LIBRARY_PATH="opt/intel_fc_80?
lib".

Unfortunately it did not work.

Please there is anyone who can tell me how to solve this?

Thank you

Pablo
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Pablo,

libcxa.so.5 is from an earlier Intel compiler, so it can't be resolved by installing the ifort 8 libraries and setting the LD_LIBRARY_PATH.If in fact your application is asking for libcxa.so.5, when ifort 8 supplies only libcxa.so.6, and you have built everything with ifort 8,it looks like a bug somewhere.

I have seen a problem like this myself, associated with building on one linux distribution and attempting to run on another. I think we need complete examples which we could submit to the Intel compiler library people via our premier.intel.com problem report accounts. Please also report what ldd shows:

ldd yourexecutable

and your glibc versions

rpm -qa glibc

If you build and run on different systems, please check the glibc on both systems. binutils version may also be relevant, for the system where you built it:

ld --version

In my case,ldd doesn't show any requirement for libcxa.so.5, and it runs OK on systems with the same glibc, but not when attempting to run ona different glibc.

Even if supplying the requested library from an older version of Intel compilers should make it work, that's not a satisfactory situation,if you rebuilt everything with ifort 8.0 and this library is still needed.

Hello Tim,

I also have the same problem as the OP. I simply downloaded the linux tarball and patch and got the IT folks to install it (I don't have root access) on my box running RHE 3.0. When I ldd an executable I get:


lnx:/f90_Test : ldd a.out
libm.so.6 => /lib/tls/libm.so.6 (0xb75b9000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb75a9000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7471000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)

but in the Intel lib directory all I have is:


lnx:/opt/intel_fc_80/lib : dir
total 12M
-rw-r--r-- 1 root root 2.4K Apr 15 12:23 crtxi.o
-rw-r--r-- 1 root root 1.6K Apr 15 12:23 crtxn.o
-rw-r--r-- 1 root root 1.8K Sep 10 2003 for_main.o
-rw-r--r-- 1 root root 203 Apr 15 12:23 icrt.internal.map
-rw-r--r-- 1 root root 402 Apr 15 12:23 icrt.link
-rw-r--r-- 1 root root 37K Sep 23 2003 ifcore_msg.cat
-rw-r--r-- 1 root root 1010K Apr 15 12:23 libcprts.a
-rwxr-xr-x 1 root root 24 Apr 15 12:23 libcprts.so*
-rwxr-xr-x 1 root root 589K Apr 15 12:23 libcprts.so.5*
-rw-r--r-- 1 root root 225K Apr 15 12:23 libcxa.a
-rwxr-xr-x 1 root root 22 Apr 15 12:23 libcxa.so*
-rwxr-xr-x 1 root root 169K Apr 15 12:23 libcxa.so.5*
-rw-r--r-- 1 root root 1.0K Apr 15 12:23 libcxaguard.a
-rwxr-xr-x 1 root root 27 Apr 15 12:23 libcxaguard.so*
-rwxr-xr-x 1 root root 2.4K Apr 15 12:23 libcxaguard.so.5*
-rw-r--r-- 1 root root 193K Apr 15 08:19 libguide.a
-rwxr-xr-x 1 root root 181K Apr 15 08:19 libguide.so*
-rw-r--r-- 1 root root 277K Apr 15 08:19 libguide_stats.a
-rwxr-xr-x 1 root root 253K Apr 15 08:19 libguide_stats.so*
-rw-r--r-- 1 root root 850K Apr 13 10:04 libifcore.a
-rwxr-xr-x 1 root root 25 Sep 10 2003 libifcore.so*
-rwxr-xr-x 1 root root 726K Apr 13 10:04 libifcore.so.5*
-rw-r--r-- 1 root root 870K Apr 13 10:04 libifcoremt.a
-rwxr-xr-x 1 root root 27 Sep 10 2003 libifcoremt.so*
-rwxr-xr-x 1 root root 742K Apr 13 10:04 libifcoremt.so.5*
-rw-r--r-- 1 root root 343K Apr 13 10:04 libifport.a
-rwxr-xr-x 1 root root 25 Sep 8 2003 libifport.so*
-rwxr-xr-x 1 root root 157K Apr 13 10:04 libifport.so.5*
-rw-r--r-- 1 root root 2.0M Apr 15 12:23 libimf.a
-rwxr-xr-x 1 root root 1.5M Apr 15 12:23 libimf.so*
-rw-r--r-- 1 root root 226K Apr 15 12:37 libirc.a
-rw-r--r-- 1 root root 226K Apr 15 12:37 libircmt.a
-rw-r--r-- 1 root root 8.7K Apr 15 12:23 libompstub.a
-rw-r--r-- 1 root root 741K Mar 22 10:00 libsvml.a
-rw-r--r-- 1 root root 26K Apr 15 12:23 libunwind.a
-rwxr-xr-x 1 root root 25 Apr 15 12:23 libunwind.so*
-rwxr-xr-x 1 root root 27K Apr 15 12:23 libunwind.so.5*

How does this get fixed?

cheers,

paulv

Leave a Comment

Please sign in to add a comment. Not a member? Join today