[问题]ubuntu下安装vmware不成功

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
HYBOO_QIU
帖子: 84
注册时间: 2005-12-05 14:52
送出感谢: 0
接收感谢: 0

[问题]ubuntu下安装vmware不成功

#1

帖子 HYBOO_QIU » 2006-10-29 20:12

最后编译vmmon module老是出错,出错信息如下:
Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.17-10-generic/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.17-10-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config3/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config3/vmmon-only/linux/driver.c:49:
/tmp/vmware-config3/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config3/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config3/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config3/vmmon-only/linux/driver.c:49:
/tmp/vmware-config3/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:62: error: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config3/vmmon-only/linux/driver.c:145: warning: initialization from incompatible pointer type
/tmp/vmware-config3/vmmon-only/linux/driver.c:149: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config3/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config3/vmmon-only'
Unable to build the vmmon module.
----------------------
有高手能帮忙解决一下吗?(我安装过build-essential,系统是edgy)
头像
吴广德
帖子: 347
注册时间: 2006-10-26 9:24
系统: Ubuntu 18.04 LTS
来自: 中国-广西-南宁
送出感谢: 2 次
接收感谢: 0

#2

帖子 吴广德 » 2006-10-30 8:32

......试试sudo apt-get install gcc................
Ubuntu 18.04 LTS使用中......

主板:MSI Z97 gaming 9 ACK
CPU:I7 4790K
内存:DDR3 8G x 2 + 4G x 2 = 24G
硬盘:60G SSD(/) + 500G HD(/home)
显示器:Philips 274E5Q
头像
HYBOO_QIU
帖子: 84
注册时间: 2005-12-05 14:52
送出感谢: 0
接收感谢: 0

#3

帖子 HYBOO_QIU » 2006-10-30 12:37

gcc已经安装过了,版本4.1
sanebaby
帖子: 227
注册时间: 2006-09-23 6:27
来自: 火星
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 sanebaby » 2006-10-30 18:53

首先您要确认已安装build-essential、kernel headers、xinetd、gcc、and g++。
如没有,请安装这些组件:

代码: 全选

sudo apt-get install build-essential linux-headers-`uname -r` xinetd gcc-4.0 g++-4.0
VMware需要安装32位的库,如果你用的是64位的系统

代码: 全选

sudo apt-get install ia32-libs libc6-i386
yrp
帖子: 32
注册时间: 2006-10-02 13:47
送出感谢: 0
接收感谢: 0
联系:

#5

帖子 yrp » 2006-10-31 12:12

我的也一样,,
sudo apt-get install build-essential linux-headers-`uname -r` xinetd gcc-4.0 g++-4.0
好像该装的都装了,,但还是出现一样的错误
make[1]: Entering directory `/usr/src/linux-headers-2.6.17-10-generic'
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config2/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:49:
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config2/vmmon-only/linux/driver.h:20,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:49:
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:62: error: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config2/vmmon-only/linux/driver.c:145: warning: initialization from incompatible pointer type
/tmp/vmware-config2/vmmon-only/linux/driver.c:149: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config2/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-10-generic'
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference ... linux.html".

Execution aborted.
springlarry
帖子: 286
注册时间: 2006-06-08 8:53
送出感谢: 0
接收感谢: 0

#6

帖子 springlarry » 2006-11-02 10:04

gavin@gavin:~$ sudo apt-get install build-essential linux-headers-`uname -r` xinetd gcc-4.0 g++-4.0
Password:
Sorry, try again.
Password:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
linux-headers-2.6.17-10-generic 已经是最新的版本了。
xinetd 已经是最新的版本了。
有一些软件包无法被安装。如果您用的是不稳定(unstable)发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们还在新到(incoming)目录中。
下列的信息可能会对解决问题有所帮助:

下列的软件包有不能满足的依赖关系:
build-essential: 依赖: libc6-dev 但是它将不会被安装 或
libc-dev
g++-4.0: 依赖: libstdc++6-4.0-dev (= 4.0.3-1ubuntu5) 但是它将不会被安装
E: 无法安装的软件包
fuhuizn
帖子: 752
注册时间: 2006-01-06 22:55
系统: ubuntu
送出感谢: 0
接收感谢: 15 次
联系:

#7

帖子 fuhuizn » 2006-11-06 17:34

如果是6.10,要装vmware-any-any补丁,linux公社有下载
头像
sysnotdown
帖子: 710
注册时间: 2006-09-24 22:43
送出感谢: 0
接收感谢: 0

#8

帖子 sysnotdown » 2006-11-06 17:47

用最新版的5.5.2应该可以,5.5.1不可以编译通过。any-any个人不建议安装。
回复

回到 “虚拟机和虚拟化”