redhat 6.4 安装VirtualBox自动增强功能功:unable to find the sources of your current Linux kernel

redhat 6.4 安装VirtualBox自动增强功能功能的时候提示:

building the main Guest Additions module FAILED

unable to find the sources of your current Linux kernel. Specify KERN_DIR-<directory> and run Make again

这个时候需要检测gcc make kernel-level kernel-header 等文件是否安装。具体使用如下命令:

rpm –qa|grep gcc

没有的话,需要安装,需要如下命令:

yum install gcc

最后需要查看kernel的版本是否一致,使用下面的命令查看:

rpm –qa|grep kernel |sort

不一致的话,需要更新kernel,使用如下命令:

yum update kernel

完成后再安装增强工具就OK了。

文章来自:http://www.cnblogs.com/abclife/p/4665551.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3