LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 05-12-2009, 12:27 PM   #1
athv_gr
LQ Newbie
 
Registered: Oct 2005
Location: Athens, Greece
Distribution: SUSE Linux 10.0
Posts: 13

Rep: Reputation: 0
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
 
Old 05-12-2009, 03:03 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 241

Rep: Reputation: 45
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:
Code:
man ldconfig
You need to tell the linker where those libs are located.

Last edited by norobro; 05-12-2009 at 05:32 PM.
 
Old 05-12-2009, 03:13 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally Posted by athv_gr View Post
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
 
Old 05-13-2009, 12:34 AM   #4
athv_gr
LQ Newbie
 
Registered: Oct 2005
Location: Athens, Greece
Distribution: SUSE Linux 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
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'
 
Old 05-13-2009, 01:04 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,040

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
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.
 
Old 05-13-2009, 02:05 AM   #6
athv_gr
LQ Newbie
 
Registered: Oct 2005
Location: Athens, Greece
Distribution: SUSE Linux 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
Old 05-13-2009, 02:17 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
ok, so they're just symlinks ...

Can you repeat the above and replace the .4 in the snippet
with a .4.2.0 ?
 
Old 05-13-2009, 12:31 PM   #8
athv_gr
LQ Newbie
 
Registered: Oct 2005
Location: Athens, Greece
Distribution: SUSE Linux 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc link shared library against another shared library qcp Linux - Newbie 1 07-25-2008 11:15 AM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
Shared Library not found but exists as symlink davoman Slackware 2 04-11-2004 05:24 PM
Missing Gnome shared library on upgraded 9.0 Tuxx0rz Slackware 2 03-31-2003 10:55 AM


All times are GMT -5. The time now is 09:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration