LinuxSir.cn,穿越时空的Linuxsir!

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

debian4下无法安装vmware的解决方法

[复制链接]
发表于 2007-6-25 22:19:19 | 显示全部楼层 |阅读模式
最近需要在debian4下用vmware来虚拟windows,但是我的vmware V6.0.0.45731无法安装,每次都出现下面错误
  1. Using 2.6.x kernel build system.
  2. make: Entering directory `/tmp/vmware-config0/vmmon-only'
  3. make -C /usr/src/linux-headers-2.6.18-4-amd64/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
  4. make[1]: Entering directory `/usr/src/linux-headers-2.6.18-4-amd64'
  5. CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
  6. CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
  7. CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
  8. CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
  9. CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
  10. CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
  11. CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
  12. cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
  13. cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
  14. cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
  15. /tmp/vmware-config0/vmmon-only/common/task_compat.h: In function ‘void Task_Switch_V45(VMDriver*, Vcpuid)’:
  16. /tmp/vmware-config0/vmmon-only/common/task_compat.h:1713: warning: ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in this function
  17. /tmp/vmware-config0/vmmon-only/common/task_compat.h:1713: warning: ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this function
  18. /tmp/vmware-config0/vmmon-only/common/task_compat.h:1713: warning: ‘sysenterState.SysenterStateV45::rsp’ may be used uninitialized in this function
  19. /tmp/vmware-config0/vmmon-only/common/task_compat.h:1713: warning: ‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in this function
  20. CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
  21. CC [M] /tmp/vmware-config0/vmmon-only/vmcore/compat.o
  22. CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
  23. LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
  24. Building modules, stage 2.
  25. MODPOST
  26. CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
  27. LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
  28. make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-4-amd64'
  29. cp -f vmmon.ko ./../vmmon.o
  30. make: Leaving directory `/tmp/vmware-config0/vmmon-only'
  31. sh: line 1: 3390 Segmentation fault 'insmod' -p '/tmp/vmware-config0/vmmon.o' >/dev/null 2>&1
  32. Unable to make a vmmon module that can be loaded in the running kernel:
  33. There is probably a slight difference in the kernel configuration between the
  34. set of C header files you specified and your running kernel. You may want to
  35. rebuild a kernel based on that directory, or specify another directory.

  36. For more information on how to troubleshoot module-related problems, please
  37. visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
  38. "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

  39. Execution aborted.
复制代码

上网找了半天终于找到了解决方法,在这里把解决方法献给遇到同样问题的朋友,
把vmware解压之后,修改vmware-config.pl文件,如下
  1. > sub check_answer_binpath {
  2. > my $answer = shift;
  3. > my $source = shift;
  4. >- my $fullpath;
  5. >+ my $fullpath = internal_which($answer);
  6. >
  7. >- if (not (internal_which($answer) eq '')) {
  8. >- return $answer;
  9. >+ if ($fullpath ne '') {
  10. >+ return $fullpath;
  11. > }
复制代码

保存后,重新安装即可
 楼主| 发表于 2007-6-28 10:43:55 | 显示全部楼层
怎么没有人支持一下的啊?
回复 支持 反对

使用道具 举报

发表于 2007-6-28 11:25:49 | 显示全部楼层
module-init-tools 是不是 3.3-pre11-1 的版本?
回复 支持 反对

使用道具 举报

发表于 2007-6-29 15:20:39 | 显示全部楼层
我也碰见过这个问题,然后通过网上查询,好像是要安装一个vmware-any-any的补丁,就可以解决了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-29 21:31:08 | 显示全部楼层
Post by flycraft
module-init-tools 是不是 3.3-pre11-1 的版本?

是的,就是这个版本,这个应该是debian默认的版本吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-29 21:32:28 | 显示全部楼层
Post by yunlinux
我也碰见过这个问题,然后通过网上查询,好像是要安装一个vmware-any-any的补丁,就可以解决了

我试过这个补丁,不过好像不起作用阿
回复 支持 反对

使用道具 举报

发表于 2007-6-30 00:33:40 | 显示全部楼层
用 pre4 或 pre11-3 的 module-init-tools 就没有这个问题了,参见 [color="Blue"]http://www.linuxsir.cn/bbs/showthread.php?t=306979
回复 支持 反对

使用道具 举报

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

本版积分规则

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