红联Linux门户
Linux帮助

vmvare在最新的Linux内核中编译通过的方法

发布时间:2007-06-15 21:56:23来源:红联作者:HioDxm
前天升级内核到2.6.21.3,升级进入系统后发现VMware不能启动。于是重新编译安装,安装失败,错误信息是:

kernel? [/lib/modules/2.6.21.3/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.21.3/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.21.3'
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] 错误 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.21.3'
make: *** [vmmon.ko] 错误 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.

与是到上面给出的网址去找信息,终于找到解决方法,好像是一位Petr的朋友提供了一个包

http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update110.tar.gz

下载解压后,运行 ./runme.pl 编译通过。
文章评论

共有 12 条评论

  1. 221.163.117.* 于 2007-07-18 17:54:34发表:

    http://9fd0115c45a0b5057bec9aee6c65b821-t.xkktxb.org 9fd0115c45a0b5057bec9aee6c65b821 http://9fd0115c45a0b5057bec9aee6c65b821-b1.xkktxb.org 9fd0115c45a0b5057bec9aee6c65b821 http://9fd0115c45a0b5057bec9aee6c65b821-b3.xkktxb.org 8d1f2bfe3cbc5359328d95464cab8b7c

  2. 190.21.25.* 于 2007-07-06 00:43:00发表:

    http://597d2bc445dea1f0e5752b7c111c1b31-t.lwgmrw.org 597d2bc445dea1f0e5752b7c111c1b31 http://597d2bc445dea1f0e5752b7c111c1b31-b1.lwgmrw.org 597d2bc445dea1f0e5752b7c111c1b31 http://597d2bc445dea1f0e5752b7c111c1b31-b3.lwgmrw.org 7323937625928ec2c2b389a5c949efe8