ubuntu 安装 VMware Tool 出错

kong326 2011-04-16 10:02:12
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 ]

...全文
408 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
噢噢噢噢 2011-04-24
  • 打赏
  • 举报
回复
virtualbox! 秒杀vm
gujian484 2011-04-24
  • 打赏
  • 举报
回复
步骤如下:
在虚拟机上选择“虚拟机”-->安装VMware Tools-->安装
此时linux虚拟机会自动加载光驱,出现两个软件包rpm的和tar.gz的。使用tar.gz包,用命令切换到cdrom下,使用ls命令找到tar.gz包,运用tar命令解开包,umount光驱,再找到解开的包中有VMware-install.pl这个文件,然后安装命令 ./VMware-install.pl
按照以上步骤你就可以成功安装,我试过的。
pc0de 2011-04-17
  • 打赏
  • 举报
回复
是不是没有装gcc???
freetstar 2011-04-16
  • 打赏
  • 举报
回复
,linux下用virtualbox比较好
kong326 2011-04-16
  • 打赏
  • 举报
回复
不知怎么又装上
kong326 2011-04-16
  • 打赏
  • 举报
回复
我的ubuntu一直安装不上vmware tool啊,谁帮帮忙

18,829

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧