1

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.
Braiam
  • 69,112
rapt
  • 560
  • 2
  • 9
  • 23

1 Answers1

0

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

sudo apt-get install linux-generic
sudo apt-get update
sudo apt-get dist-upgrade 

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

Rmano
  • 32,167