LinuxSir.cn,穿越时空的Linuxsir!

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

vmware-config.pl 或 vmware-config-tools.pl 遇到问题的请进

[复制链接]
发表于 2006-3-21 01:45:41 | 显示全部楼层 |阅读模式
感觉这两个文件一样,vmware-config.pl是在Linux作为Host OS时用的,vmware-config-tools.pl是在linux(作为Guest)中,安装VMware Tools时用的。但是在FC5下这两个都通不过,总会出现,
“The kernel defined by this directory of header files does not have the same address space size as your running kernel. “
的错误提示信息。重新编译内核,也没能解决该问题。最后经过google找到解决方案,现在献给,遇到相同问题的朋友。

解决该问题很简单,只要替换这两个文件中的1972和1973两行
$header_page_offset =~ s/^$pattern \(?0x([0-9a-fA-F]{8,}).*$/$1/;
if ($header_page_offset =~ /[0-9a-fA-F]{8,}/) {

if ($header_page_offset =~ /^$pattern \(?0x([0-9a-fA-F]{8,})/) {
$header_page_offset = $1;
即可。

详细信息请见,出处:
http://www.vmware.com/community/ ... =31877&tstart=0

现在的问题时,vmware-toolbox一窗口的方式运行,一旦关闭窗口,vmware-toolbox就会退出,vmware-toolbox带来的便利也就没有了。:(以前好像没有遇到这个问题:(
发表于 2006-3-21 13:24:52 | 显示全部楼层
呵呵,多谢,我的vmware终于好了,现在可以在里面弄个windows来玩玩了。
回复 支持 反对

使用道具 举报

发表于 2006-3-21 13:40:59 | 显示全部楼层
我的vmware是5.0.0-13124

我也如LZ一样修改了那个vmware-config.pl,能正确找到我的/lib/modules/2.6.15-1.2054_FC5/build/include,谢谢,但是我这一步没有通过,显示如下:

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.15-1.2054_FC5/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.15-1.2054_FC5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
在包含自 /tmp/vmware-config0/vmmon-only/./include/vmware.h:24 的文件中,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.c:44:
/tmp/vmware-config0/vmmon-only/./include/vm_basic_defs.h:208:5: 警告:“_MSC_VER”未定义
在包含自 /tmp/vmware-config0/vmmon-only/./include/vcpuset.h:56 的文件中,
                 从 /tmp/vmware-config0/vmmon-only/./include/modulecall.h:23,
                 从 /tmp/vmware-config0/vmmon-only/./common/vmx86.h:18,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.h:15,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:54:5: 警告:“_MSC_VER”未定义
在包含自 /tmp/vmware-config0/vmmon-only/linux/driver.h:19 的文件中,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:37:5: 警告:“VMW_HAVE_EPOLL”未定义
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:43:5: 警告:“VMW_HAVE_EPOLL”未定义
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:19,
                 from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:60: 错误:与 ‘poll_initwait’ 类型冲突
include/linux/poll.h:45: 错误:‘poll_initwait’ 的上一个声明在此
在包含自 /tmp/vmware-config0/vmmon-only/./include/vm_asm.h:23 的文件中,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.c:48:
/tmp/vmware-config0/vmmon-only/./include/vm_basic_asm.h:48:5: 警告:“_MSC_VER”未定义
/tmp/vmware-config0/vmmon-only/linux/driver.c:138: 警告:从不兼容的指针类型初始化
/tmp/vmware-config0/vmmon-only/linux/driver.c:142: 警告:从不兼容的指针类型初始化
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/kernels/2.6.15-1.2054_FC5-i686'
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.

这是怎么回事?是不是我的vmware版本低了?
回复 支持 反对

使用道具 举报

发表于 2006-3-21 19:23:27 | 显示全部楼层
请问到哪里去修改vmware-config.pl
是安装前的vmware的文件夹吗,具体是哪个文件夹呢
我找了1个小时了,都没找到啊
回复 支持 反对

使用道具 举报

发表于 2006-3-21 19:35:56 | 显示全部楼层
用 which 命令找到在哪里先:

which vmware-config.pl

如果没有就是说你还没有装。
要先装好,然后会问你要不要允许这个config, 说不要,改掉再手工运行。


Post by smstone
请问到哪里去修改vmware-config.pl
是安装前的vmware的文件夹吗,具体是哪个文件夹呢
我找了1个小时了,都没找到啊
回复 支持 反对

使用道具 举报

发表于 2006-3-21 19:44:21 | 显示全部楼层
谢谢了

我的是说没装,但怎么安装啊
我的出现
The kernel defined by this directory of header files does not have the same address space size as your running kernel.
我该怎么办啊,怎么回车都没用了
回复 支持 反对

使用道具 举报

发表于 2006-3-25 22:43:04 | 显示全部楼层
我说怎么回事呢,终于找到毛病了。
回复 支持 反对

使用道具 举报

发表于 2006-3-25 23:28:51 | 显示全部楼层
/lib/modules/2.6.15-1.2054_FC5/build
找不到/build文件夹,是不是少装了什么?
回复 支持 反对

使用道具 举报

发表于 2006-3-26 13:14:39 | 显示全部楼层
Post by yangjio4849
我的vmware是5.0.0-13124

我也如LZ一样修改了那个vmware-config.pl,能正确找到我的/lib/modules/2.6.15-1.2054_FC5/build/include,谢谢,但是我这一步没有通过,显示如下:

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.15-1.2054_FC5/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.15-1.2054_FC5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
在包含自 /tmp/vmware-config0/vmmon-only/./include/vmware.h:24 的文件中,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.c:44:
/tmp/vmware-config0/vmmon-only/./include/vm_basic_defs.h:208:5: 警告:“_MSC_VER”未定义
在包含自 /tmp/vmware-config0/vmmon-only/./include/vcpuset.h:56 的文件中,
                 从 /tmp/vmware-config0/vmmon-only/./include/modulecall.h:23,
                 从 /tmp/vmware-config0/vmmon-only/./common/vmx86.h:18,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.h:15,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/./include/vm_atomic.h:54:5: 警告:“_MSC_VER”未定义
在包含自 /tmp/vmware-config0/vmmon-only/linux/driver.h:19 的文件中,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:37:5: 警告:“VMW_HAVE_EPOLL”未定义
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:43:5: 警告:“VMW_HAVE_EPOLL”未定义
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:19,
                 from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/./include/compat_wait.h:60: 错误:与 ‘poll_initwait’ 类型冲突
include/linux/poll.h:45: 错误:‘poll_initwait’ 的上一个声明在此
在包含自 /tmp/vmware-config0/vmmon-only/./include/vm_asm.h:23 的文件中,
                 从 /tmp/vmware-config0/vmmon-only/linux/driver.c:48:
/tmp/vmware-config0/vmmon-only/./include/vm_basic_asm.h:48:5: 警告:“_MSC_VER”未定义
/tmp/vmware-config0/vmmon-only/linux/driver.c:138: 警告:从不兼容的指针类型初始化
/tmp/vmware-config0/vmmon-only/linux/driver.c:142: 警告:从不兼容的指针类型初始化
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/kernels/2.6.15-1.2054_FC5-i686'
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.

这是怎么回事?是不是我的vmware版本低了?


看一下这篇文章
Since this is a unsupported host OS and Fedora Core 5, I believe is still beta software. You will most likely need to download the latest unofficial vmware-any-any-update from http://ftp.cvut.cz/vmware.

1. Extract the archive to your /tmp or some other empty directory, then follow these steps:

2. Open a Terminal window

3. Use su to become root

4. Switch to the directory in which you extracted vmware-any-any-update??

5. Run ./runme.pl and follow the prompts.
出自:http://www.vmware.com/community/thread.jspa?threadID=37010&tstart=0
回复 支持 反对

使用道具 举报

发表于 2006-3-29 15:44:52 | 显示全部楼层
安装成功的标志是什么啊,是不是在窗口状态下不用CTRL+ALT鼠标能出来。
回复 支持 反对

使用道具 举报

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

本版积分规则

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