Page 1 of 1

Slack12.1: /usr/src/linux version mismatch (vboxdrv)

Posted: 18. Jan 2009, 21:31
by nv4Phil

Code: Select all

root@box2:/usr/src/vboxdrv-2.1.0# make
Makefile:154: *** Error: /usr/src/linux (version 2.6.24.5-smp) does not match the current kernel (version 2.6.24.5).  Stop.
root@box2:/usr/src/vboxdrv-2.1.0# uname -a
Linux box2 2.6.24.5 #1 Wed Apr 30 15:15:52 CDT 2008 i686 Mobile AMD Sempron(tm) Processor 3600+ AuthenticAMD GNU/Linux
root@box2:/usr/src/vboxdrv-2.1.0# ls -al /usr/src/linux
lrwxrwxrwx 1 root root 14 2008-06-02 21:57 /usr/src/linux -> linux-2.6.24.5
It doesn't know what it is doing. I'm unable to install. It does the same thing when I try the install script, and when I try "vboxdrv setup" ... Help!

Thanks.

Posted: 20. Jan 2009, 21:14
by Sasquatch
The error is pretty obvious. You don't have the same version of the kernel headers compared to the actual kernel you are running. You have the SMP headers, but run the normal kernel (non-SMP). Update your distro, check the package manager for the correct packages and fix it.

Posted: 21. Jan 2009, 00:48
by nv4Phil
Sasquatch wrote:The error is pretty obvious. You don't have the same version of the kernel headers compared to the actual kernel you are running. You have the SMP headers, but run the normal kernel (non-SMP). Update your distro, check the package manager for the correct packages and fix it.
Well sure... trouble being, that isn't the case!! I *do* have the same version.... If I didn't, then yes...it would be *blatently* obvious, and I would not have asked the question :-)

Thanks.

Posted: 22. Jan 2009, 22:06
by Sasquatch
Then there is obviously some string mismatch. You can always use the KERNEL_SOURCE= variable to set the proper path to the source. Variable could have a slightly different name though.