;kernel headers not found 这个问题出现在自己编译的新内核更改对应的内核版本就行
ln -s /usr/src/linux-3.7.6/include/generated/uapi/linux/version.h /usr/src/linux-3.7.6/include/lnux/version.h
;Make sure you have updated version
sudo apt-get update
;Search for kernel version (optional)
apt-cache search linux-headers-$(uname -r)
;Install linux-header package
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get build-essential
ln -s /usr/src/linux-3.7.6/include/generated/uapi/linux/version.h /usr/src/linux-3.7.6/include/lnux/version.h
;Make sure you have updated version
sudo apt-get update
;Search for kernel version (optional)
apt-cache search linux-headers-$(uname -r)
;Install linux-header package
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get build-essential