[问题]安装vmware workstation时出错

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
wzmwilson
帖子: 40
注册时间: 2005-07-29 0:38
来自: 福建漳州

[问题]安装vmware workstation时出错

#1

帖子 wzmwilson » 2005-08-03 9:57

帮忙看看,从接受协议后的出错信息,到底是哪需要调整。
Do you accept? (yes/no) y

Thank you.

grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
Trying to find a suitable vmmon module for your running kernel.

None of VMware Workstation's pre-built vmmon modules is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes] y

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.10-5-686/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

make: Entering directory `/tmp/vmware-config0/vmmon-only'
make[1]: Entering directory `/tmp/vmware-config0/vmmon-only'
make[2]: Entering directory `/tmp/vmware-config0/vmmon-only/driver-2.6.10-5-686'make[2]: Leaving directory `/tmp/vmware-config0/vmmon-only/driver-2.6.10-5-686'
make[2]: Entering directory `/tmp/vmware-config0/vmmon-only/driver-2.6.10-5-686'In file included from /lib/modules/2.6.10-5-686/build/include/asm/processor.h:18,
from /lib/modules/2.6.10-5-686/build/include/asm/thread_info.h:17,
from /lib/modules/2.6.10-5-686/build/include/linux/thread_info.h:21,
from /lib/modules/2.6.10-5-686/build/include/linux/spinlock.h:12,
from /lib/modules/2.6.10-5-686/build/include/linux/capability.h:45,
from /lib/modules/2.6.10-5-686/build/include/linux/sched.h:7,
from /lib/modules/2.6.10-5-686/build/include/linux/module.h:10, from ../linux/driver.c:16:
/lib/modules/2.6.10-5-686/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.6.10-5-686/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.10-5-686/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
../linux/driver.c:25:27: linux/wrapper.h: 没有那个文件或目录
In file included from ../linux/driver.c:45:
../linux/driver.h:51:1: warning: "DEVICE_NAME_SIZE" redefined
In file included from /lib/modules/2.6.10-5-686/build/include/linux/miscdevice.h:5,
from ../linux/driver.h:12,
from ../linux/driver.c:45:
/lib/modules/2.6.10-5-686/build/include/linux/device.h:25:1: warning: this is the location of the previous definition
../linux/driver.c: At top level:
../linux/driver.c:133: warning: initialization from incompatible pointer type
../linux/driver.c: In function `init_module':
../linux/driver.c:246: error: structure has no member named `prev'
../linux/driver.c:247: error: structure has no member named `next'
../linux/driver.c: In function `Panic':
../linux/driver.c:1304: warning: implicit declaration of function `_exit'
../include/vm_asm.h: In function `Div643264':
../include/vm_asm.h:1095: warning: use of memory input without lvalue in asm operand 4 is deprecated
make[2]: *** [driver.o] 错误 1
make[2]: Leaving directory `/tmp/vmware-config0/vmmon-only/driver-2.6.10-5-686'
make[1]: *** [driver] 错误 2
make[1]: Leaving directory `/tmp/vmware-config0/vmmon-only'
make: *** [auto-build] 错误 2
make: Leaving directory `/tmp/vmware-config0/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.

root@ubuntu:/home/user/vmware-distrib #
wzmwilson
帖子: 40
注册时间: 2005-07-29 0:38
来自: 福建漳州

#2

帖子 wzmwilson » 2005-08-04 22:18

不会吧,居然没有人给个说法。
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#3

帖子 yongyi » 2005-08-04 22:31

我来也。

代码: 全选

uname -r
显示,然后

代码: 全选

sudo apt-get install linux-headers-`uname -r`
如果你还没安装GCC等一堆东东,请:

代码: 全选

sudo apt-get install build-essential
这样应该可以了吧。

如果还是有点问题,
要include 的路径可以从这找到:/lib/modules/<<module release number>>/build/include
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
wzmwilson
帖子: 40
注册时间: 2005-07-29 0:38
来自: 福建漳州

#4

帖子 wzmwilson » 2005-08-04 22:43

上面几步都已经有做过了。还是不行的。
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#5

帖子 yongyi » 2005-08-04 22:59

那我不清楚了。
刚才搜索一下,主页文档也有哦:
http://www.ubuntu.org.cn/support/docume ... erm=vmware

不过也差不多的了。
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
wzmwilson
帖子: 40
注册时间: 2005-07-29 0:38
来自: 福建漳州

#6

帖子 wzmwilson » 2005-08-04 23:28

是啊,我就是按照文档说明的步骤,一步一步进行下来的,结果到最后一步时就出错了。(内核?编译?)
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#7

帖子 yongyi » 2005-08-04 23:32

如果安装了
sudo apt-get install linux-headers-2.6.10-5-686 (这是我的)
应该就可以的吧。

并且可以build-essential也不用装,只装gcc 就可以了吧?

刚才去了官方论坛看看,好像有的人可以,有的不可以 :cry:
http://ubuntuforums.org/showthread.php? ... mon+module
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
wzmwilson
帖子: 40
注册时间: 2005-07-29 0:38
来自: 福建漳州

#8

帖子 wzmwilson » 2005-08-08 11:11

很好很好,根据yongyi的提示,现在已经成功安装了。
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#9

帖子 yongyi » 2005-08-08 12:00

wzmwilson 写了:很好很好,根据yongyi的提示,现在已经成功安装了。
可以说过问题的关键吗?
这样可以让我们修改文档,并方便后来的兄弟。
谢谢了。
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
wzmwilson
帖子: 40
注册时间: 2005-07-29 0:38
来自: 福建漳州

#10

帖子 wzmwilson » 2005-08-08 15:31

1. Since VMware does not support any of the current Hoary kernels (2.6.10-x), you will have to build the vmware modules during the installation, so there are something you have to load before you start installing Vmware.
b. linux-source (apt-get install linux-source-xxx). For instance, mine is 2.6.10 for my running kernel 2.6.10-5-686
2. the kernel source does not get installed after you apt-get, so you will need to go to the /usr/src dir and manually untar it. After you get the directory, then do "ln -sf you_linux_source_dir linux". This will create a symblic link named "linux" under the same dir.

个人觉得以上这两点比较关键。
安装了vmware workstation 5后,我又将其卸载。下了个4.0版的,安装时仍然无法通过,难道是版本问题。
回复