感谢支持
我们一直在努力

unable to find the sources of your current Linux kernel. 解决

运行

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

就可以编译成功了。

本文永久更新链接地址:http://www.linuxidc.com/Linux/2017-03/141526.htm

赞(0) 打赏
转载请注明出处:服务器评测 » unable to find the sources of your current Linux kernel. 解决
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏