Cannot install virtualbox [SOLVED]

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Cannot install virtualbox [SOLVED]

Post by rsal »

I tried to install virtualbox with command 'spi -i virtualbox' but got following error:

Code: Select all

# spi -i virtualbox
The following packages will be installed:
 virtualbox-kernel 
Fetching COPYING...Done
Fetching COPYING.CDDL...Done
Fetching README...Done
Fetching doinst.sh...Done
Fetching slack-desc...Done
Fetching virtualbox-kernel-mksrctarball.sh...Done
Fetching virtualbox-kernel.SlackBuild...Done
Fetching virtualbox-kernel.info...Done
virtualbox-kernel-4.3.24/
virtualbox-kernel-4.3.24/vboxpci/
virtualbox-kernel-4.3.24/vboxpci/SUPR0IdcClientComponent.c
virtualbox-kernel-4.3.24/vboxpci/product-generated.h
virtualbox-kernel-4.3.24/vboxpci/version-genera
...
...
...
*** Building 'vboxdrv' module ***
make[1]: Entering directory `/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxdrv'
Makefile:192: *** Error: KERN_DIR does not point to a directory.  Stop.
make[1]: Leaving directory `/usr/src/slapt-src/system/virtualbox-kernel/virtualbox-kernel-4.3.24/vboxdrv'
make: *** [all] Error 2
fakeroot -- sh virtualbox-kernel.SlackBuild Failed
How can I solve this?
Last edited by rsal on 10. Feb 2016, 08:11, edited 1 time in total.
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Cannot install virtualbox

Post by djemos »

Code: Select all

sudo slapt-get -i kernel-source
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: Cannot install virtualbox

Post by rsal »

Yes, it worked. Thanks.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Cannot install virtualbox

Post by mimosa »

Can you please edit the title of your original post to say "solved"? This is useful both for people searching the forum in future, and to save time for people looking at new posts.

In the case of virtualbox, it's actual better to install the latest precompiled binary from the VBox website. The kernel-source is still needed.
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: Cannot install virtualbox [SOLVED]

Post by rsal »

Yes. It took a really long time to build, and that too with processor at full use, even though this computer is of reasonable configuration. I was worried that the motherboard / cpu may get too much heated and damaged.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Cannot install virtualbox [SOLVED]

Post by mimosa »

I'm sure your hardware can cope. Normally, it's not a good idea to install third-party binaries, but in this case it's a good way to get the latest version from a trusted source, without the long build.
Post Reply