Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-12-2009, 12:27 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Location: Athens, Greece
Distribution: SUSE Linux 10.0
Posts: 13
Rep:
|
ldd reports shared library missing, but library exists on disk
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
|
|
|
05-12-2009, 03:03 PM
|
#2
|
Member
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792
|
Edit: Please disregard. Upon rereading your post I see that you mention "/etc/ld.so.conf" I guess I have a reading comprehension problem.
Take a look at: You need to tell the linker where those libs are located.
Last edited by norobro; 05-12-2009 at 05:32 PM.
|
|
|
05-12-2009, 03:13 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally Posted by athv_gr
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
Cheers,
Tink
|
|
|
05-13-2009, 12:34 AM
|
#4
|
LQ Newbie
Registered: Oct 2005
Location: Athens, Greece
Distribution: SUSE Linux 10.0
Posts: 13
Original Poster
Rep:
|
lrwxrwxrwx 1 root root 17 Dec 15 2007 /opt/kde3/lib/libkdeui.so.4 -> libkdeui.so.4.2.0
/opt/kde3/lib/libkdeui.so.4: symbolic link to `libkdeui.so.4.2.0'
lrwxrwxrwx 1 root root 17 Dec 15 2007 /opt/kde3/lib64/libkdeui.so.4 -> libkdeui.so.4.2.0
/opt/kde3/lib64/libkdeui.so.4: symbolic link to `libkdeui.so.4.2.0'
lrwxrwxrwx 1 root root 19 Dec 15 2007 /opt/kde3/lib/libkdecore.so.4 -> libkdecore.so.4.2.0
/opt/kde3/lib/libkdecore.so.4: symbolic link to `libkdecore.so.4.2.0'
lrwxrwxrwx 1 root root 19 Dec 15 2007 /opt/kde3/lib64/libkdecore.so.4 -> libkdecore.so.4.2.0
/opt/kde3/lib64/libkdecore.so.4: symbolic link to `libkdecore.so.4.2.0'
lrwxrwxrwx 1 root root 17 Dec 15 2007 /opt/kde3/lib/libkdefx.so.4 -> libkdefx.so.4.2.0
/opt/kde3/lib/libkdefx.so.4: symbolic link to `libkdefx.so.4.2.0'
lrwxrwxrwx 1 root root 17 Dec 15 2007 /opt/kde3/lib64/libkdefx.so.4 -> libkdefx.so.4.2.0
/opt/kde3/lib64/libkdefx.so.4: symbolic link to `libkdefx.so.4.2.0'
|
|
|
05-13-2009, 01:04 AM
|
#5
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
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.
|
|
|
05-13-2009, 02:05 AM
|
#6
|
LQ Newbie
Registered: Oct 2005
Location: Athens, Greece
Distribution: SUSE Linux 10.0
Posts: 13
Original Poster
Rep:
|
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.
|
|
|
05-13-2009, 02:17 AM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
ok, so they're just symlinks ...
Can you repeat the above and replace the .4 in the snippet
with a .4.2.0 ?
|
|
|
05-13-2009, 12:31 PM
|
#8
|
LQ Newbie
Registered: Oct 2005
Location: Athens, Greece
Distribution: SUSE Linux 10.0
Posts: 13
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|