Trying to follow an online tutorial "Intel-phc with latest kernel on Ubuntu". My ubuntu kernel version is 3.2.0-38-generic (Ubuntu 14.04). Following the instructions I downloaded kernel 3.14.2 from https://www.kernel.org. I was able to do all the steps except for the last two ones (make, sudo make dkms_install). I get:
Makefile:29: *** Kernel version not found, maybe you need to install appropriate kernel-headers or run make with KERNELSRC parameter, e.g.: make KERNELSRC=/usr/src/linux. Stop.
- What am I missing here? If I understand the makefile right, it expects the compiled kernel to have the same version as my current kernel? However this is not what I read in the tutorial.
That kernel version is strange, should be 3.13, are you sure it is not a case of Wrong kernel after upgrade --- old kernel still installed??
In that case a
then removing the hand-installed kernel and a reboot should solve the problem.
If you really need a different kernel and have it manually installed, you need to install the corresponding header packages, you have that explained here: https://wiki.ubuntu.com/Kernel/MainlineBuilds?action=show&redirect=KernelMainlineBuilds#Installing_upstream_kernels