一種是你沒有安裝內核標頭檔,那就要先安裝.
另外一種情況是vmware的問題,其實kernel header已經安裝了,只是沒有正確的被識別到
解決辦法如下:
1. 運行cd /lib/modules/`uname -r`/build/include/linux
如果沒有提示錯誤資訊,ps: uname -r 查看內核版本號
2. 做兩個軟連接就行了,具體方法是運行下面兩條命令
ln -s ../generated/autoconf.h
ln -s ../generated/utsrelease.h
這兩條命令給vmwaretools關聯了正確的內核標頭檔的位置
3. 再次執行./vmware-install.pl後,如下所示 :vmware已經可以找到了合法的內核標頭檔路徑,接下來就是繼續按enter鍵了。Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no]
Searching for a valid kernel header path...
Detected the kernel headers of the running kernel at
"/lib/modules/2.6.38-8-generic/build/include". //cd /lib/modules/`uname -r`/build/include/linux
The path "/lib/modules/2.6.38-8-generic/build/include" appears to be a valid
path to the kernel headers of the running kernel.
Would you like to change it? [no]
沒有留言:
張貼留言