Page 1 of 1

Cannot install virtualbox [SOLVED]

Posted: 9. Feb 2016, 11:58
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?

Re: Cannot install virtualbox

Posted: 9. Feb 2016, 12:22
by djemos

Code: Select all

sudo slapt-get -i kernel-source

Re: Cannot install virtualbox

Posted: 10. Feb 2016, 05:08
by rsal
Yes, it worked. Thanks.

Re: Cannot install virtualbox

Posted: 10. Feb 2016, 07:43
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.

Re: Cannot install virtualbox [SOLVED]

Posted: 10. Feb 2016, 08:14
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.

Re: Cannot install virtualbox [SOLVED]

Posted: 10. Feb 2016, 09:15
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.