centos安装增强功能出现kernel headers not found for target kernel解决办法
最近新安装一个centos虚拟机,在安装增强功能的时候出现了,kernel headers not found for target kernel的错误。特记下我的解决方案。
1.update kernel
yum update kernel -y
2.Install the kernel-headers, kernel-devel and other required packages
yum install kernel-headers kernel-devel gcc make -y
3.Reboot the server to make sure it load to the new kernel
init 6