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

时间:2015-07-21 21:48:27   收藏:0   阅读:5801

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!