IBM Support

Error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Technote (troubleshooting)


Problem(Abstract)

Error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Symptom

Common errors that you may see:

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

errors trying to load shared libraries: libd1.so.2, libc.so.6, librt.so.1 with file not found errors


Environment

RedHat OS platform


Resolving the problem

You will need to have your system IT person install the 32 bit compatible libraries available from your OS vendor. RedHat does not load these libraries on newer installs, especially with the 64 bit OS.


Here is a list from a supported version of RedHat:

[cduser@node /usr/lib]$ l libstd*
-rwxr-xr-x 1 root root 258288 Dec 14 2004 libstdc++-2-libc6.1-1-2.9.0.so -rwxr-xr-x 1 root root 268428 Dec 14 2004 libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root 30 Jun 22 2006 libstdc++-libc6.1-1.so.2 -> libstdc++-2-libc6.1-1-2.9.0.so
lrwxrwxrwx 1 root root 31 Jun 22 2006 libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root 18 Jun 22 2006 libstdc++.so.5 -> libstdc++.so.5.0.7
-rwxr-xr-x 1 root root 744136 Dec 1 2004 libstdc++.so.5.0.7
lrwxrwxrwx 1 root root 18 Mar 8 2007 libstdc++.so.6 -> libstdc++.so.6.0.3
-rwxr-xr-x 1 root root 804084 Feb 24 2007 libstdc++.so.6.0

Historical Number

FAQ1915

Document information

More support for: Sterling Connect:Direct for UNIX

Software version: 4.0

Operating system(s): Linux

Reference #: 1519277

Modified date: 16 October 2012