[ How to solve “building the main Guest Additions module Failed” ]

 在VirtualBox虚拟机CentOS6.3安装VBoxAdditions时报错:“building the main Guest Additions module Failed”

How to solve “building the main Guest Additions module Failed”

Question:

I tried to install the VirtualBox Guest Additions module in a VM guest running  CentOS but I get this error message when everything else was okay:

building the main Guest Additions module Failed

Answer:

You lack the make command. Make is a utility that is often used to build programs from source; it runs the compiler on every source file in the right order. You need to install the make package, and possibly others: the C compiler, and the kernel headers (files generated during the compilation of the Linux kernel, that are necessary to compile third-party modules).

I hardly ever use CentOS, but I think the right command is:

yum install gcc make kernel-devel

or (will install more than you need)

yum groupinstall "Development Tools"

You may need to install other packages as well.

You need to run this command as root; depending on whether you use su or sudo:

su -c 'yum install …'
sudo yum install …

 


如何在VirtualBox 4.2.12下安装 CentOS 的 增强包,可以参考:

[ 教你在VirtualBox中的CentOS 6.3下安装VirtualBox增强包(GuestAddition) ]

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2021-09-06
  • 2021-06-06
猜你喜欢
  • 2022-12-23
  • 2021-04-26
  • 2021-04-09
  • 2022-12-23
  • 2021-11-28
  • 2021-11-18
相关资源
相似解决方案