LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2007-6-3 03:02:17 | 显示全部楼层 |阅读模式
前天升级内核到2.6.21.3,升级进入系统后发现VMware不能启动
于是重新编译安装,安装失败,错误信息是:
  1. kernel? [/lib/modules/2.6.21.3/build/include]
  2. Extracting the sources of the vmmon module.
  3. Building the vmmon module.
  4. Using 2.6.x kernel build system.
  5. make: Entering directory `/tmp/vmware-config0/vmmon-only'
  6. make -C /lib/modules/2.6.21.3/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
  7. make[1]: Entering directory `/usr/src/linux-2.6.21.3'
  8.   CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
  9. In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:80:
  10. /tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
  11. /tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
  12. /tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
  13. make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] 错误 1
  14. make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] 错误 2
  15. make[1]: Leaving directory `/usr/src/linux-2.6.21.3'
  16. make: *** [vmmon.ko] 错误 2
  17. make: Leaving directory `/tmp/vmware-config0/vmmon-only'
  18. Unable to build the vmmon module.
  19. For more information on how to troubleshoot module-related problems, please
  20. visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
  21. "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
  22. Execution aborted.
复制代码

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

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

下载解压后,运行 ./runme.pl  编译通过

不敢独享,拿出来供大家参考
发表于 2007-6-3 06:04:57 | 显示全部楼层
谢谢分享,我不懂 VM,是所有版本都能通用的吗?
回复 支持 反对

使用道具 举报

发表于 2007-6-3 09:06:19 | 显示全部楼层
嗯,有空试试~~
回复 支持 反对

使用道具 举报

发表于 2007-6-3 13:08:01 | 显示全部楼层
什么版本的 vmware ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-3 13:22:20 | 显示全部楼层
Post by flycraft
什么版本的 vmware ?

vmware server 1.03
回复 支持 反对

使用道具 举报

发表于 2007-6-4 22:34:38 | 显示全部楼层
亲哥啊........我这两天就是不知道为啥VM启动不了.......QQ,网银什么的都用不了啊......原来是这么个问题啊.....有救了....
回复 支持 反对

使用道具 举报

发表于 2007-6-12 21:40:36 | 显示全部楼层

十分感谢楼主

我今天刚装的fedora7想装VMware装个windows,可就这出错了,搞了一天了,真是太感谢了!
回复 支持 反对

使用道具 举报

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

本版积分规则

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