在VirtualBox虚拟机中安装了Centos系统,安装增强功能时报错,错误为“centos the headers for the current running kernel were not found......”,报错原因是系统找不到kernel headers,在网上找到了方法,原解决方案为:
1)yum install gcc -y
2)yum install gcc kernel-devel kernel-headers -y
3)重启系统
但在执行上述步骤并重启系统之后,增强功能还是不能安装。而使用"yum install kernel*"并重启系统之后可以安装增强功能。
所以,解决方案可以修改为:
1)yum install gcc -y
2) yum install kernel* /yum install kernel-devel*
3)重启系统
转载于:https://blog.51cto.com/myhwj/1721144