[问题]安装vmware workstation 运行 vmware-config.pl时出现问题(已解决)

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
roamer
帖子: 43
注册时间: 2007-04-18 3:09
来自: UESTC
送出感谢: 0
接收感谢: 0
联系:

[问题]安装vmware workstation 运行 vmware-config.pl时出现问题(已解决)

#1

帖子 roamer » 2007-11-12 10:07

如题:
vmware版本:VMware-workstation-5.5.5-56455.tar.gz
Linux内核版本:2.6.20-16-generic
错误信息如下:
roamer@roamer:~$ sudo /usr/local/vmware/bin/vmware-config.pl
Password:
Making sure services for VMware Workstation are stopped.

Stopping VMware services:
Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation 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]

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.20-16-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-config0/vmmon-only'
make -C /lib/modules/2.6.20-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:80:
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'
make: *** [vmmon.ko] Error 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/prebuilt_modules_linux.html".

Execution aborted.

roamer@roamer:~$


怎么解决这个问题呢?请各位牛人帮忙一下
上次由 roamer 在 2007-11-14 16:26,总共编辑 1 次。
头像
bones7456
论坛版主
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
送出感谢: 0
接收感谢: 8 次
联系:

#2

帖子 bones7456 » 2007-11-12 10:14

http://bones7456.blog.ubuntu.org.cn/200 ... %ef%bc%9a/

很久以前弄过一次,不一定和你的问题一样,你看看有没有参考价值吧.
PS: 现在改用VBox了.
关注我的blog: ε==3
头像
roamer
帖子: 43
注册时间: 2007-04-18 3:09
来自: UESTC
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 roamer » 2007-11-14 16:24

谢谢2楼的兄弟,按照你介绍的方法把问题搞定啦:)

cd /usr/lib/vmware/modules/source
sudo cp vmmon.tar vmmon.tar.old
sudo tar xvf vmmon.tar
sudo gedit vmmon-only/include/compat_kernel.h

找到
static inline _syscall1(int, compat_exit, int, exit_code);
并替换成

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static inline _syscall1(int, compat_exit, int, exit_code);
#endif

sudo tar cvf vmmon.tar vmmon-only
sudo rm -rf vmmon-only

然后再运行vmware-config.pl就可以了
fancing
帖子: 32
注册时间: 2005-09-27 9:28
来自: 惠州
送出感谢: 0
接收感谢: 0

#4

帖子 fancing » 2007-11-16 11:28

我的是在vmnet-only里出问题的,看不懂解决方法的。

C语言!!!
只爱百合花@_@
------------------------------
Ubuntu答疑-惠州学院计算机系ZSN老师
回复

回到 “虚拟机和虚拟化”