VirtualBox 4.3.6上安装CentOS 6.5

https://my.oschina.net/tashi/blog/190060

 

错误1、Building the main Guest Additions module [FAILED]

安装的过程中,出现Building the main Guest Additions module[FAILED]错误,
查看log文件是 /var/log/vboxadd-install.log

/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel.

原因:

安装增强功能需要kernel-devel和gcc包,并且必须保证kernel-devel和kernel版本的一致。若两者版本不一致,则必须升级kernel,以便 Guest Additions 安装能够正常工作。

查看kernel版本
uname –r

查看源中查看软件源中kernel-devel的版本:
yum info kernel-devel

解决办法:

#更新内核。
yum update kernel

#需要安装相应的kernel-devel和gcc程序包,gcc也是必须的
yum install kernel-devel gcc

升级完后必须重启系统,新的kernel才能被使用。

错误2、Building the OpenGL support module[FAILED]

解决方法

安装的时候使用"make -i" , -i, --ignore-errors Ignore errors from commands.忽略错误。
Linux export命令用于设置或显示环境变量。

在shell中执行程序时,shell会提供一组环境变量。export可新增,修改或删除环境变量,供后续执行的程序使用。export的效力仅及于该次登陆操作。

export MAKE='/usr/bin/gmake -i'

cd /meida/VBOXADDITIONS_5.0.16_105871

./VBoxLinuxAdditions.run

相关文章:

  • 2022-12-23
  • 2021-07-12
  • 2021-12-08
  • 2021-06-08
  • 2021-04-21
  • 2021-11-16
  • 2021-11-27
  • 2021-11-30
猜你喜欢
  • 2021-04-30
  • 2021-05-30
  • 2022-12-23
  • 2021-06-29
  • 2021-09-05
相关资源
相似解决方案