Building the main Guest Additions modu

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

Since I'm very new to CentOS and VirtualBox, I have no idea about to solve this and wasnt able to find any solution searching the internet (the only post I found didnt help me).

Here is the log :

/usr/src/vboxguest-4.1.14/vboxguest/build_in_tmp: line 55: make : command not found Creating user for the Guest additions. Creating udev rule for the Guest additions kernel module

Any ideas? Thanks

share improve this question
 

4 Answers

up vote 9 down vote accepted

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 …
share improve this answer
 

On a current CentOS 7 minimal install you need:

sudo yum install gcc kernel-devel-$(uname -r)
share improve this answer
 

All i did to fix this problem is followed the suggestion by guest additions installer:

The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason. The missing package can be probably installed with

yum install kernel-uek-devel-2.6.39-400.215.10.el6uek.i686

After that i just retried to run guest additions installer and everything went perfect.

share improve this answer
 

For CentOS 7 I needed to do install DKMS via epel. Here is my complete list of commands.

sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo rpm -ivh epel-release-7-5.noarch.rpm
sudo yum install dkms -y
sudo yum groupinstall "Development Tools" -y
sudo yum install kernel-devel -y
sudo yum upgrade -y

reboot the vm

After reboot - I used vagrant vbguest (https://github.com/dotless-de/vagrant-vbguest) to install Guest Additions.

Hope this helps,

share improve this answer
 

protected by Community Dec 3 '15 at 17:23

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count). 

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged      or ask your own question.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值