首页 > 系统服务 > 详细

unable to find the sources of your current Linux kernel.

时间:2017-03-05 16:15:54      阅读:320      评论:0      收藏:0      [点我收藏+]

运行

sh ./VBoxLinuxAdditions.run

时FAILED,查看日志:

/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

意思是说没有内核源文件,解决的办法是运行

yum instal gcc.i686 kernel.i686 kernel-devel.i686
reboot

分别是编译器,内核,内核头文件以及Makefile,然后再重启,让系统从新的内核文件选项启动。再运行

sh ./VBoxLinuxAdditions.run

就可以编译成功了。

unable to find the sources of your current Linux kernel.

原文:http://www.cnblogs.com/mstk/p/6505457.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!