Problems compiling vboxdrv on a VPS.
Posted: 7. Apr 2009, 00:17
Hello,
I am trying to install VirtualBox 2.1.4 for Linux on a VPS running Debian GNU/Linux 4.0 (etch).
This snippet should explain my problem:
And this is where I got stuck. I haven't very much experience when it comes to Kernels and VPS, and that weird `uname -r`output early on really confuses me. I would have expected something like "2.6.18-6-i386" but apparently that's not the case this time around.
I've tried googling "Unable to find the folder to install support driver to" but unfortunately that string only leads to snippets of code.
Any advice would be greatly appreciated.
I am trying to install VirtualBox 2.1.4 for Linux on a VPS running Debian GNU/Linux 4.0 (etch).
This snippet should explain my problem:
Code: Select all
# dpkg -i virtualbox-2.1_2.1.4-42893_Debian_etch_i386.deb
Compilation of the kernel module FAILED! [...] Install them (the package name is probably linux-headers-<version>
# uname -r
2.6.18-92.1.13.el5.028stab059.6
# apt-get install linux-headers-2.6.18-92.1.13.el5.028stab059.6
E: Couldn't find package linux-headers-2.6.18-92.1.13.el5.028stab059.6
# following this advice (http://www.linuxquestions.org/questions/showthread.php?p=3499907#post3499907) advice I executed:
# apt-get install linux-headers-2.6.18-6
Setting up linux-headers-2.6.18-6 (2.6.18.dfsg.1-24) ...
# dpkg -i virtualbox-2.1_2.1.4-42893_Debian_etch_i386.deb
Messages emitted during module compilation will be logged to /var/log/vbox-install.log.
# cat /var/log/vbox-install.log
** Compiling vboxdrv
Makefile:143: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
# export KERN_DIR="/usr/src/linux-headers-2.6.18-6/"
# dpkg -i virtualbox-2.1_2.1.4-42893_Debian_etch_i386.deb
Messages emitted during module compilation will be logged to /var/log/vbox-install.log.
# cat /var/log/vbox-install.log
** Compiling vboxdrv
Makefile:181: *** Unable to find the folder to install the support driver to. Stop.
I've tried googling "Unable to find the folder to install support driver to" but unfortunately that string only leads to snippets of code.
Any advice would be greatly appreciated.