gui won't start - error while loading shared libraries

Discussions related to using VirtualBox on Linux hosts.
Post Reply
zootal
Posts: 14
Joined: 18. May 2008, 19:07

gui won't start - error while loading shared libraries

Post by zootal »

I can't get the gui to start:

/VirtualBox: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

I'm not quite sure how to resolve this.

Slamd64 12.1
ATI 3870 w/ati proprietary drivers
KDE
VB 2.1.0 64bit amd version
fastie81
Posts: 12
Joined: 25. Sep 2008, 01:07

Post by fastie81 »

Same Problem here..
Fedora 10 64bit
same error
"error while loading shared libraries: libcap.so.1"
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

You need to install the libcap1 package. I have libcap1 and libcap2 installed on my XUbuntu 8.10 32 bit system.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
fastie81
Posts: 12
Joined: 25. Sep 2008, 01:07

Post by fastie81 »

On Fedora we don't have a libcap1 and 2
We only got libcap and I have that installed.
I have also installed libcaptury package but that also has not worked.
fastie81
Posts: 12
Joined: 25. Sep 2008, 01:07

Post by fastie81 »

Ok got this working..
you would need to have libcap installed..
Now on my 64bit vesion I needed to put a link in

ln -s /lib64/libcap.so.2.10 /lib64/libcap.so.1
Then it worked..
fastie81
Posts: 12
Joined: 25. Sep 2008, 01:07

Post by fastie81 »

[quote="fastie81"]Ok got this working..
you would need to have libcap installed..
Now on my 64bit vesion I needed to put a link in

ln -s /lib64/libcap.so.2.10 /lib64/libcap.so.1
Then it worked..[/quote]
slycordinator
Posts: 8
Joined: 17. Sep 2007, 19:58

Post by slycordinator »

fastie81 wrote:Ok got this working..
you would need to have libcap installed..
Now on my 64bit vesion I needed to put a link in

ln -s /lib64/libcap.so.2.10 /lib64/libcap.so.1
Then it worked..
That's a kluge at best.

libcap1 and libcap2 use different abi's.
wilcal
Posts: 9
Joined: 14. Jul 2008, 18:40

Post by wilcal »

I have a Mandriva 2009.0 system with exactly this same error:

"VirtualBox: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory"

I installed using: VirtualBox-2.1.0-41146-Linux_x86.run

previously I was using: VirtualBox-2.0.6-39760-Linux_x86.run
and that was running just fine. I would expect that this serious install
error will be corrected in the next release. When would you expect
that to be? Has it been reported as a bug?
"DISK BOOT FAILURE - INSERT SYSTEM DISK AND PRESS ENTER"
is my friend
wilcal
Posts: 9
Joined: 14. Jul 2008, 18:40

Post by wilcal »

I've been able to drop back to:

VirtualBox-2.0.6-39760-Linux_x86.run

and that runs just fine.
"DISK BOOT FAILURE - INSERT SYSTEM DISK AND PRESS ENTER"
is my friend
jerry1091
Posts: 15
Joined: 16. Dec 2008, 04:08

Post by jerry1091 »

I too have Mandriva 2009 64 and had the same issue.

I symlinked the /lib64/libcap.so.1 to /opt/VirtualBox-2.1.0/libcap.so.1

Works like a champ.

:-)

Hope this helps
wilcal
Posts: 9
Joined: 14. Jul 2008, 18:40

Post by wilcal »

Thanks all for the feedback. Good solutions all but this
is a very important application and should install cleanly.
It's not a Mandriva problem. The issue belongs to Sun/VirtualBox.
"DISK BOOT FAILURE - INSERT SYSTEM DISK AND PRESS ENTER"
is my friend
JWSmythe
Posts: 5
Joined: 21. Jan 2009, 17:30

Post by JWSmythe »

I ran into this today also. The fix was easy.

Slamd64
VirtualBox-2.1.0-41146-Linux_amd64

Code: Select all

cd /usr/src/
wget http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap1/libcap-1.97.tar.gz
tar xvpzf libcap-1.97.tar.gz
cd libcap-1.97
make
make install
Now VirtualBox will run. :) I didn't find a recent package for libcap. The kludge that I saw for using libcap2 as libcap1 is probably a bad idea, but I guess it worked. Since this is a required package, it should have been tested for by the installer, and/or included with the package (IMHO)
wilcal
Posts: 9
Joined: 14. Jul 2008, 18:40

Post by wilcal »

From another thread:

"2.1.2 is due out very soon"

hopefully the new release will repair this issue.
"DISK BOOT FAILURE - INSERT SYSTEM DISK AND PRESS ENTER"
is my friend
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

New version is released and has the fix not to depend on libcap.1.so.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply