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

相关文章:

  • 2021-11-28
  • 2021-09-03
  • 2021-06-24
  • 2021-11-23
  • 2021-10-25
猜你喜欢
  • 2021-07-26
  • 2021-11-23
  • 2021-12-08
  • 2021-11-23
  • 2021-12-08
  • 2021-12-08
相关资源
相似解决方案