virtualbox中安裝增強工具失敗

urgel_babay發表於2016-03-01
在virtualbox中安裝centos6.4後,再安裝增強工具失敗。

安裝出現如下錯誤:
Building the VirtualBox Guest Additions kernel modules [FAILED] 
Your system does not seem to be set up to build kernel modules. 
Look at /var/log/vboxadd-install.log to find out what went wrong. 
Once you have corrected it, you can run /etc/init.d/vboxadd setup to build them. 
檢視錯誤日誌:
/tmp/vbox.o/Makefile.include.header:97: *** 
Error: unable to find the source of your current Linux kernel.Specify KERN_DIR=<directory> and run make again. Stop.


解決:
#yum install kernel-headers
#yum install kernel-devel
#yum install gcc* 
#yum install make

重啟,
再次安裝,ok

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30936525/viewspace-2018403/,如需轉載,請註明出處,否則將追究法律責任。

相關文章