ldd reports shared library missing, but library exists on disk
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have the following problem: In a SuSe machine the graphical environment suddenly stopped working.
I checked the /var/log/kdm.log and at its end it says:
/opt/kde3/bin/kdm_greet: error while loading shared libraries: libkdeui.so.4: cannot open shared object: No such file or directory
I run ldd /opt/kde3/bin/kdm_greet and I get that it cannot find:
libkdeui.so.4
libkdecore.so.4
libkdefx.so.4
They all are in the directory /opt/kde3/lib and /opt/kde3/lib64 and these directories are listed in /etc/ld.so.conf.
I also checked their permissions and they seem ok.
Anyone knows why they cannot be found even though they exist on disk?
Thanks
Can you post the output of
Code:
for i in kdeui kdecore kdefx
do
ls -l /opt/kde3/lib/lib${i}.so.4
file /opt/kde3/lib/lib${i}.so.4
ls -l /opt/kde3/lib64/lib${i}.so.4
file /opt/kde3/lib64/lib${i}.so.4
done
Did you use some kind of external repository or non-official packages or something like that?
Even if the libraries are there that doesn't mean that kdm_greet can link to them. That can happen for example if they have been compiled against different versions of a base library (for example if those libs and kdm_greet were compiled against different versions of qt). Another cause could be that the libraries are corrupt, had been compiled for another architectures...
For the rest I know nothing about SuSE these days so I can't give any more concrete idea.
To the best of my knowledge no one that uses this machine has done any updates or installed something. The libraries were installed during the first setup of the machine and I don't think that they have changed since, so probable they are not corrupt.
Ok, it seems that running ldconfig did the job. The system is back to normal. I don't understand why the database had become corrupt.
Anyway, thanks for your replies.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.