1. 程式人生 > >解決在ubuntu 12.10安裝vmware-tools實現檔案共享問題

解決在ubuntu 12.10安裝vmware-tools實現檔案共享問題

解決在ubuntu 12.10安裝vmware-tools出現的“The path "" is not a valid path to linux-headers-3.5.0-17 ”或者“The path "" is not a valid path to linux-headers-3.5.0-17 -generic”問題: 在使用終端安裝vmware-tools時,不停地回車直到出現下面這幾行字時就停止了。

Before you can compile modules, you need tohave the following installed...
make
gcc
kernel header of the running kernel

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] no (我輸入的no)

Searching for a valid kernel header path
The path " " is not a valid path to linux-headers-3.5.0-17. 

Would you like to change it? [yes](我輸入的yes)

Enter the path to the kernel header files for the linux-headers-3.5.0-17? (我的ubuntu /usr/src/下有這個linux-headers-3.5.0-17,但是我輸入這個路徑也解決不了問題)

後來多方查詢發現是沒有linux-headers-3.5.0-17 -generic包。參考網址:

在終端中分別輸入執行以下指令,就可以安裝linux-headers-3.5.0-17 -generic了。 1 sudo apt-get update 2 sudo apt-get install build-essential
3 sudo apt-get install linux-headers-$(uname -r) 更新完上面的內容後,我發現我的/usr/src/下有linux-headers-3.5.0-17 -generic包了,在root許可權下輸入

 sudo ./vmware-install.pl

回車,這個我的檔案可以從win7上共享到ubuntu上了。