Ubuntu serching for a valid kernel header

Ubuntu 13.04安裝VMware Tools,解決無法找到kernel header path的問題
 
Ubuntu 13.04 安裝 VMware Tools,運行vmware-config-tools.pl 時,總是提示
The path "" is not valid.
What is the location of the directory of C header files that match your running
kernel?
輸入 /usr/src/linux-headers-3.8.0-26-generic/include 或 /lib/modules/3.8.0-26-generic/build/include 都提示“The path ...  is not valid.”。
 
用了半天時間才找到解決方案 555....分享一下。
 
1. 更新或安裝linux headers
sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)
 
2. 關聯文件,就是因爲找不到這個幾個文件,vmware tools才認爲路徑無效的。
cd /lib/modules/$(uname -r)/build/include/linux
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln -s ../generated/uapi/linux/version.h
 
3. 再次執行安裝就ok啦,運行vmware-config-tools.pl 也沒問題了
sudo ./vmware-install.pl

安裝完之後重啓




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章