Skip to main content
Welcome guest. | Register | Login | Post

cannot open shared object file: Permission denied

9 replies [Last post]
libervisco's picture
Offline
Joined: 2006-05-04

This is quite weird. Before going to sleep last night I turned off my computer. I first shut off GNOME and then did "sudo halt" to shut down the computer. There is one application prior to that which I had practically forced to shut down using htop giving it a SIGKILL singnal though.

Today I boot and attempt to startx and what I get is this:

gnome-session: error while loading shared libraries: libgnomecanvas-2.so.0: cannot open shared object file: Permission denied

That causes X not to start if GNOME is set to start with it (in ~/.xinitrc ).

I have started KDE instead, which worked, but this problem apparently happens with some other programs as well..

For example, leafpad:

leafpad: error while loading shared libraries: libgnomecanvas-2.so.0: cannot open shared object file: Permission denied

or cdrecord

cdrecord: error while loading shared libraries: libcap.so.1: cannot open shared object file: Permission denied

How can permission be denied for something that was normally working before for both normal user and root. This happens now even when I am root so it definitely doesn't appear to be a standard permissions problem.

Any clues?

Thanks

a thing's picture
Offline
Joined: 2005-12-20
chmod

You have chmodded those, right?

Also try running ldconfig.

Last fsck your disk from a live CD.

libervisco's picture
Offline
Joined: 2006-05-04
It was working normally

It was working normally before and now it doesn't work even when running as root. I don't think chmod would help.

Running ldconfig (even as root) just gives me this, basically the same thing for all libraries it can find I suppose:

ldconfig: Cannot lstat /usr/X11R6/lib/libscrollkeeper.so: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libdaemon.so.0: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libcap.so.1: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libgnomecanvas-2.so.0: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libsvg.so: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libcap.so.1.10: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libscrollkeeper.so.0: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libavahi-glib.so.1: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libavahi-glib.so: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libgnomecanvas-2.so: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libscrollkeeper.so.0.0.0: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libdaemon.so: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libdaemon.so.0.2.4: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libsvg-cairo.so: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libgstreamer-0.10.so.0.7.0: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libsvg-cairo.so.1.0.1: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libsvg-cairo.so.1: Permission denied
ldconfig: Cannot lstat /usr/X11R6/lib/libcap.so: Permission denied
ldconfig: Can't link /usr/X11R6/lib/libgnomecanvas-2.so.0 to libgnomecanvas-2.so.0.1400.0
ldconfig: Can't link /usr/X11R6/lib/libavahi-glib.so.1 to libavahi-glib.so.1.0.0

I'll try fscking the disk from a livecd. (Man how did that sound! Laughing out loud )

libervisco's picture
Offline
Joined: 2006-05-04
Okay, I finally checked the

Okay, I finally checked the file system using fsck.reiserfs from a livecd and it indeed found some errors that had to be fixed with fsck.reiserfs --rebuild-tree

That seems to have fixed the major issue as I can now launch GNOME and ldconfig works as well.

However some things seems to be a bit messed up from the previous state, at least as far GNOME is concerned.

When I start the GNOME up I get a message about gnome-settings-daemon that couldn't be launched due to some bonobo related problem.

On the command line, launching gnome-settings-daemon looks like this.

[daniel@libernode ~]$ /opt/gnome/libexec/gnome-settings-daemon
/opt/gnome/libexec/gnome-settings-daemon: error while loading shared libraries: libgstreamer-0.10.so.0: cannot open shared object file: No such file or directory

I tried linking /usr/lib/libgstreamer-0.10.so from /usr/lib/libgstreamer-0.10.so.0 , but that didn't work.

This isn't a very major issue and might probably fix itself at the next upgrade of gstreamer or GNOME as new versions of gnome-settings-daemon settle in, but it's kind of annoying anyway.

a thing's picture
Offline
Joined: 2005-12-20
relink and reinstall

1. Try ldconfig again.
2. Reinstall gstreamer.

Next time you want to reboot, try changing the runlevel to 6(init 6).

Nice hostname btw.

libervisco's picture
Offline
Joined: 2006-05-04
I tried ldconfig multiple

I tried ldconfig multiple times. Also reinstalling cdrecord resolved the same problem (missing library) though reinstalling gstreamer didn't. I suppose that this library comes from something else related to gstreamer.

Anyway, it's not a big deal now. The next big update of GNOME and related stuff should take care of it.

a_thing wrote:

Next time you want to reboot, try changing the runlevel to 6(init 6).

How is that done exactly? I never actually did that on my own. And it seems kind of weird to have to do that at every reboot...

a_thing wrote:

Nice hostname btw.

Thanks. Smiling

tbuitenh's picture
Offline
Joined: 2005-12-21
gstreamer pwns it
libervisco wrote:

I suppose that this library comes from something else related to gstreamer.

[taco@garden ~]$ pacman -Qo /usr/lib/libgstreamer-0.10.so.0
/usr/lib/libgstreamer-0.10.so.0 is owned by gstreamer0.10 0.10.6-1

libervisco's picture
Offline
Joined: 2006-05-04
Oh I see now. I have two

Oh I see now. I have two versions of gstreamer, the 0.8 one which is just marked as "gstreamer" in pacman and the other gstreamer0.10 (marked as such).

I'm reinstalling gstreamer0.10 now and we'll see if it worked next time I start GNOME. Will let you know.

Thanks for the hint Taco!

a thing's picture
Offline
Joined: 2005-12-20
init 6
libervisco wrote:
a_thing wrote:

Next time you want to reboot, try changing the runlevel to 6(init 6).

How is that done exactly? I never actually did that on my own. And it seems kind of weird to have to do that at every reboot...

Just run init 6 and the reboot process will start.

libervisco's picture
Offline
Joined: 2006-05-04
thanks
a thing wrote:

Just run init 6 and the reboot process will start.

I see, thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.