CentOS 6.3安装VirtualBox4自动增强功能失败的原因

CentOS 6.3安装VirtualBox4自动增强功能功能的时候提示:

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了。

相关链接:在CentOS 6中安装VirtualBox的增强功能并分配数据空间

没有了爱的语言,所有的文字都是乏味的

CentOS 6.3安装VirtualBox4自动增强功能失败的原因

相关文章:

你感兴趣的文章:

标签云: