If you end up getting this error message:

The path "/usr/src/linux/include"; is a kernel header file directory, but it
does not contain the file "linux/version.h"; as expected. This can happen if
the kernel has never been built, or if you have invoked the "make mrproper";
command in your kernel directory. In any case, you may want to rebuild your
kernel.

Install kernel headers via:
sudo apt-get install linux-headers-`uname -r`

Do this (get YOUR_KERNEL_VERSION by doing uname -r):
# cd /usr/src/kernels/YOUR_KERNEL_VERSION/include/linux

  1. cp utsrelease.h version.h

and it should work :)

Comments