Sunday, 20 May 2012

The kernel source for this kernel does not seem to be installed


Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

I regularly reinstall my graphics drivers, but can never seem to remember where the link to the kernel source/headers should be for DKMS to find it automatically. Here it is for reference, assuming your kernel source/headers are placed at /usr/src/linux-<kernelversion>:

# unlink /lib/modules/$(uname -r)/build
# ln -s /usr/src/linux-$(uname -r) /lib/modules/$(uname -r)/build

1 comment:

  1. Nice, this seem to work for building virtualbox drivers, i just had to add header in name.
    Thanx

    ReplyDelete