Problem with shared dynamic library files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Problem with shared dynamic library files
# 1  
Old 12-19-2009
Problem with shared dynamic library files

I am having a major problem. Most of the commands that i am running on my centos 5 system is giving the error of type:

Code:
<dynamic shared library file>:open failed: No such file or directory

For example:
libgcc_s.so.1: open failed: No such file or directory

How can i solve this?
# 2  
Old 12-19-2009
Does this file exist any longer or was it accidentially deleted or renamed?
# 3  
Old 12-19-2009
Code:
[root@fred ~]# ldd /bin/rpm
        librpm-4.4.so => /usr/lib64/librpm-4.4.so (0x0000003a52e00000)
        librpmdb-4.4.so => /usr/lib64/librpmdb-4.4.so (0x0000003a52a00000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003a57a00000)
        librpmio-4.4.so => /usr/lib64/librpmio-4.4.so (0x0000003a51a00000)
        libpopt.so.0 => /usr/lib64/libpopt.so.0 (0x0000003a5c000000)
        libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x0000003a51e00000)
        libelf.so.1 => not found
        libbeecrypt.so.6 => /usr/lib64/libbeecrypt.so.6 (0x0000003a52200000)
        libm.so.6 => /lib64/libm.so.6 (0x0000003a50600000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003a50a00000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x0000003a51200000)
        librt.so.1 => /lib64/librt.so.1 (0x0000003a51600000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003a50e00000)
        libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x0000003a63000000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003a50200000)
        libelf.so.1 => not found
        libsepol.so.1 => /lib64/libsepol.so.1 (0x0000003a57e00000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003a4fe00000)
        libgcc_s.so.1 => not found
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003a62800000)
        libgcc_s.so.1 => not found
        libgcc_s.so.1 => not found

When i simply run rpm i get the error:

Code:
[root@fred ~]# rpm
rpm: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory

Which is obvious from the output of ldd

The output of locate command suggests that the libraary file is indeed missing from the system:
Code:
[root@fred ~]# locate libgcc_s.so.1
[root@fred ~]#

# 4  
Old 12-19-2009
Is LD_LIBRARY_PATH set to some odd-ball directory?
# 5  
Old 12-19-2009
Code:
[root@fred keross]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/opt/nable/usr/lib

Also, I have a file named local.conf in /etc/ld.so.conf.d/ directory, the contents of which is:

Code:
[root@fred keross]# cat /etc/ld.so.conf.d/local.conf
/usr/lib64:/lib:/lib64:/usr/lib

Do i still need to set LD_LIBRARY_PATH?
What do you mean by odd-ball directory?
I don't have a value set for LD_LIBRARY_PATH

Code:
[root@fred keross]# echo $LD_LIBRARY_PATH

[root@fred keross]#

# 6  
Old 12-20-2009
Try fixing up the symbolic links for libgcc_s and libelf. Looks like /lib64/libgcc_so.1 and /usr/lib64/libelf.so.1 have gone missing. These are also symbolic links which point to the actual shared library.
# 7  
Old 12-20-2009
Code:
Try fixing up the symbolic links for libgcc_s and libelf. Looks like /lib64/libgcc_so.1 and /usr/lib64/libelf.so.1 have gone missing. These are also symbolic links which point to the actual shared library.

Can you elaborate a bit the process of fixing.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

problem in dynamic library*.so

hello I apologize if my question bothers you I work on a code developed in C + + which worked well on mac os, this code will help create libraries *.so from *.cc and *.h I used this as flags:CXXFLAGS = -g -O2 -fPIC -Wall -ldl -D_GNU_SOURCE ,CXX := g++ and $(CXX)-shared -o $(LIBNAME) $(CLIBLIB)... (0 Replies)
Discussion started by: pheapc
0 Replies

2. Programming

Shared library with acces to shared memory.

Hello. I am new to this forum and I would like to ask for advice about low level POSIX programming. I have to implement a POSIX compliant C shared library. A file will have some variables and the shared library will have some functions which need those variables. There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies

3. HP-UX

Problem in Shared library file .sl on 64bit HP-UX 11.11

We are facing issue with shared library file, we are getting difference in content for same shared file for chatr command :confused: , below are the detail about *.sl file, even we are also getting difference in size of both file. can you please tell me what will be the issue for same. is my new... (1 Reply)
Discussion started by: amodkavi
1 Replies

4. HP-UX

Can't open shared library problem

I am getting following error when I am trying access PMCMD utility /usr/lib/dld.sl: Can't open shared library: /home/build3p/PMReleases/Zeus/HP-UX/xml/xerces2_4_0-icu2_6_1_811/lib/libxerces-c.sl.24 /usr/lib/dld.sl: No such file or directory Please help me with this (0 Replies)
Discussion started by: imran_affu
0 Replies

5. UNIX for Dummies Questions & Answers

How to obtain list of object files in a shared (dynamic) library?

How can I simply obtain a list of the object files in a shared (dynamic) library. I am looking for the equivalent of "ar -t <lib>" for archived (static) libraries. Thanks in advance. :rolleyes: ---------- Post updated at 01:47 PM ---------- Previous update was at 12:16 PM ---------- The... (1 Reply)
Discussion started by: chatieremerrill
1 Replies

6. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

7. Programming

Shared library versioning problem at runtime

My executable was linked under RedHat using the LessTif GUI shared library. When I try to run it under UBUNTU, I get an error message that the LessTif library cannot be found. The LessTif library is there, but it is a newer VERSION. My executable is looking for the older version it was linked with.... (1 Reply)
Discussion started by: imagtek
1 Replies

8. AIX

Shared Object library problem

Hi, When using shared objects on AIX 4.3 i am getting runtime problems. I have a small sample program which links to a shared object libray, oracle and system related libraries. At runtime it fails (gives segmentation fault and coredump ) in one proc file when executing login statement. But... (0 Replies)
Discussion started by: suman_jakkula
0 Replies

9. Linux

load dynamic and shared library in kernel

hi how can i load dynamic or shared library in linux kernel modules . mtaghiloo@yahoo.com (0 Replies)
Discussion started by: mtaghiloo
0 Replies

10. HP-UX

Shared Library Problem

I have this error when I try to do check on the oracle database... Can you help me figure out whats the problem? Thanks for all the help! /usr/lib/pa20_64/dld.sl: Unable to find library 'libjox8.sl'. /usr/lib/pa20_64/dld.sl: Unable to find library 'libjox8.sl'. ... (1 Reply)
Discussion started by: vinz
1 Replies
Login or Register to Ask a Question