解决在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包。参考网址:

http://www.cnblogs.com/SelaSelah/archive/2013/02/17/2914412.html

http://www.2cto.com/os/201308/236037.html

在终端中分别输入执行以下指令,就可以安装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上了。

标签