LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1409|回复: 16

安装VMware-workstation时出错

[复制链接]
发表于 2010-7-2 19:36:41 | 显示全部楼层 |阅读模式
因为emerge vmware-workstation提示错误,没有安装上,于是就下载VMware-workstation-5.5.5-56455.tar.gz安装,解压后运行./vmware-install.pl,前面还算正常,到编译模块时就出现了如下错误:
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:70: note: previous declaration of ‘poll_initwait’ was here
In file included from /tmp/vmware-config3/vmmon-only/./include/vm_basic_asm.h:32,
                 from /tmp/vmware-config3/vmmon-only/./include/vm_asm.h:25,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:52:
/tmp/vmware-config3/vmmon-only/./include/vm_basic_asm_x86.h:48:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmmon-only/./include/vm_basic_asm_x86.h:109:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmmon-only/./include/vm_basic_asm_x86.h:278:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmmon-only/./include/vm_basic_asm_x86.h:385:7: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config3/vmmon-only/./include/vm_asm.h:30,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:52:
/tmp/vmware-config3/vmmon-only/./include/vm_asm_x86.h:430:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmmon-only/./include/vm_asm_x86.h:676:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config3/vmmon-only/./include/vm_asm_x86.h:716:7: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config3/vmmon-only/linux/vmhost.h:13,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:71:
/tmp/vmware-config3/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: No such file or directory
In file included from /tmp/vmware-config3/vmmon-only/linux/driver.c:80:
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
/tmp/vmware-config3/vmmon-only/linux/driver.c:144: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config3/vmmon-only/linux/driver.c:145: warning: initialization from incompatible pointer type
/tmp/vmware-config3/vmmon-only/linux/driver.c:148: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config3/vmmon-only/linux/driver.c:149: warning: initialization from incompatible pointer type
/tmp/vmware-config3/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-config3/vmmon-only/linux/driver.c:1656: error: ‘struct task_struct’ has no member named ‘euid’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1656: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1657: error: ‘struct task_struct’ has no member named ‘fsuid’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1657: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1658: error: ‘struct task_struct’ has no member named ‘egid’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1658: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1659: error: ‘struct task_struct’ has no member named ‘fsgid’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1659: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1661: error: ‘struct mm_struct’ has no member named ‘dumpable’
/tmp/vmware-config3/vmmon-only/linux/driver.c:1672: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vmware-config3/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] Error 2
make: *** [vmmon.ko] Error 2
如果解决呢?
发表于 2010-7-2 20:15:49 | 显示全部楼层
好像遇到过一次,忘了怎么回事,但可以使用vmware的overlay,里面的workstation可以用。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-2 20:57:30 | 显示全部楼层
谢谢:)
下班的时间了,回家后再找找overlay~,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-3 00:22:22 | 显示全部楼层
自己还是解决不了 :(
回复 支持 反对

使用道具 举报

发表于 2010-7-3 17:53:24 | 显示全部楼层
sudo layman -a vmware # 没layman的话先 sudo emerge -av layman
sudo emerge -av vmware-workstation # 当前版本 app-emulation/vmware-workstation-7.1.0.261024

没装, 126M 怕怕
[nomerge      ] app-emulation/vmware-workstation-7.1.0.261024  USE="vmware-tools -doc -vix"  [1]
[ebuild  N    ]  app-emulation/vmware-modules-238  0 kB [1]
[ebuild  N F  ]   app-emulation/vmware-workstation-7.1.0.261024  USE="vmware-tools -doc -vix" 126,743 kB [1]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-3 18:46:09 | 显示全部楼层
还是不行。。。
Gentoo ~ # layman -a vmware
*  Overlay "vmware" does not exist.
Gentoo ~ # layman -a vmware-workstation
*  Overlay "vmware-workstation" does not exist.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-3 18:58:06 | 显示全部楼层
如果直接emerge vmware-workstation的话:
>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-emulation/vmware-workstation-6.5.3.185404
>>> Downloading 'http://download3.vmware.com/software/wkst/VMware-Workstation-6.5.3-185404.i386.bundle'
--2010-07-04 02:52:06--  http://download3.vmware.com/soft ... -185404.i386.bundle
Resolving download3.vmware.com... 69.192.35.51
Connecting to download3.vmware.com|69.192.35.51|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-07-04 02:52:08 ERROR 404: Not Found.

>>> Downloading 'http://download2.vmware.com/software/wkst/VMware-Workstation-6.5.3-185404.i386.bundle'
--2010-07-04 02:52:08--  http://download2.vmware.com/soft ... -185404.i386.bundle
Resolving download2.vmware.com... 69.192.35.51
Connecting to download2.vmware.com|69.192.35.51|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2010-07-04 02:52:08 ERROR 403: Forbidden.


!!! app-emulation/vmware-workstation-6.5.3.185404 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

* Please download the VMware-Workstation-6.5.3-185404.i386.bundle from
* http://www.vmware.com/download/ws/
* and place it in /usr/portage/distfiles
* Fetch failed for 'app-emulation/vmware-workstation-6.5.3.185404', Log file:
*  '/var/tmp/portage/app-emulation/vmware-workstation-6.5.3.185404/temp/build.log'

>>> Failed to emerge app-emulation/vmware-workstation-6.5.3.185404, Log file:

>>>  '/var/tmp/portage/app-emulation/vmware-workstation-6.5.3.185404/temp/build.log'
是6.5.3的版本,emerge之前我已经emerge --sync了
回复 支持 反对

使用道具 举报

发表于 2010-7-3 19:37:42 | 显示全部楼层
overlay 和 emerge --sync 没关系的

layman -L 看看能不能获取列表

没理由呀
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-3 20:28:12 | 显示全部楼层
我执行了layman -L可以获得列表,我也看见了vmware
然后再执行 layman -a vmware出现了如下提示:
* Binary /usr/bin/svn seems to be missing! Overlay type "svn" not supported. Did you emerge dev-util/subversion?
* Failed to add overlay "vmware".
* Error was: Adding overlay "vmware" failed!
我就把subversion安装上了,再次执行layman -a vmware结果才显示成功了
最后我又emerge -av vmware-workstation,可是还是第七楼的错误提示~
回复 支持 反对

使用道具 举报

发表于 2010-7-3 20:34:25 | 显示全部楼层
7楼的提示是让你把vmware的安装文件放到/use/portage/distfiles/
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表