ubuntu 安装 VMware Tool 出错
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-28-generic). Even if the module were to
compile successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6.35-28-generic/include
Extracting the sources of the vmmemctl module.
Building the vmmemctl module.
Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config0/vmmemctl-only'
make -C /usr/src/linux-headers-2.6.35-28-generic/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-28-generic'
CC [M] /tmp/vmware-config0/vmmemctl-only/os.o
In file included from /tmp/vmware-config0/vmmemctl-only/os.c:40:
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:37: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:43: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:72: note: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config0/vmmemctl-only/os.c: In function ‘os_init’:
/tmp/vmware-config0/vmmemctl-only/os.c:567: error: ‘struct proc_dir_entry’ has no member named ‘get_info’
make[2]: *** [/tmp/vmware-config0/vmmemctl-only/os.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config0/vmmemctl-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-28-generic'
make: *** [vmmemctl.ko] 错误 2
make:离开目录“/tmp/vmware-config0/vmmemctl-only”
Unable to build the vmmemctl module.
The memory manager driver (vmmemctl module) is used by VMware host software to
efficiently reclaim memory from a virtual machine.
If the driver is not available, VMware host software may instead need to swap
guest memory to disk, which may reduce performance.
The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you want the memory management feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]
Trying to find a suitable vmhgfs module for your running kernel.
None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes] yes
Extracting the sources of the vmhgfs module.
Building the vmhgfs module.
Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config1/vmhgfs-only'
make -C /usr/src/linux-headers-2.6.35-28-generic/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.35-28-generic'
CC [M] /tmp/vmware-config1/vmhgfs-only/backdoor.o
In file included from /tmp/vmware-config1/vmhgfs-only/backdoor.h:15,
from /tmp/vmware-config1/vmhgfs-only/backdoor.c:26:
/tmp/vmware-config1/vmhgfs-only/vm_basic_types.h:104: warning: "__FreeBSD__" is not defined
CC [M] /tmp/vmware-config1/vmhgfs-only/backdoorGcc32.o
In file included from /tmp/vmware-config1/vmhgfs-only/backdoor.h:15,
from /tmp/vmware-config1/vmhgfs-only/backdoorGcc32.c:32:
/tmp/vmware-config1/vmhgfs-only/vm_basic_types.h:104: warning: "__FreeBSD__" is not defined
CC [M] /tmp/vmware-config1/vmhgfs-only/bdhandler.o
/tmp/vmware-config1/vmhgfs-only/bdhandler.c:15: fatal error: asm/semaphore.h: 没有那个文件或目录
compilation terminated.
make[2]: *** [/tmp/vmware-config1/vmhgfs-only/bdhandler.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmhgfs-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.35-28-generic'
make: *** [vmhgfs.ko] 错误 2
make:离开目录“/tmp/vmware-config1/vmhgfs-only”
Unable to build the vmhgfs module.
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]