首頁 > 軟體

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

2020-06-16 17:19:38

執行

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


IT145.com E-mail:sddin#qq.com