日期:2014-05-16  浏览次数:20869 次

VM tool9.02安装是出现不合法头文件错误
THe path ""is not a valid path to the 2.6.35.14-106.fc14.i686.PAE kernel headers
------解决方案--------------------
检查路径
/lib/modules/2.6.35.14-106.fc14.i686/build/include/linux/
其中2.6.35.14-106.fc14.i686是你的内核版本号,可能名称不同

某些内核版本缺少version.h
sudo cp /usr/include/linux/version.h /lib/modules/2.6.35.14-106.fc14.i686/build/include/linux/

------解决方案--------------------
很久以前我也遇到过这个问题,可能是某一步选错了,后来清理了重新安装就OK了。。。

cd vmware-tools-distrib/

./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]  回车

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]  回车

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]  回车

In which directory do you want to install the daemon files?
[/usr/sbin]  回车

In which directory do you want to install the library files?
[/usr/lib/vmware-tools] 回车

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]  yes

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]  回车

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes] yes

The installation of VMware Tools 9.6.0 build-1294478 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] yes

Initializing...


Making sure services for VMware Tools are stopped.
Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon: done
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon: [ OK ]
   Unmounting HGFS shares: [ OK ]
   Guest filesystem driver: [ O