|
发表于 2006-5-16 16:51:56
|
显示全部楼层
- Bug:
- When you try and configure vmware with
- Code:
- /opt/vmware/workstation/bin/vmware-config.pl
- it asks
- Code:
- What is the location of the directory of C header files that match your running
- kernel? [/usr/src/linux/include]
- but then you get an error complaining
- Code:
- The kernel defined by this directory of header files does not have the same
- address space size as your running kernel.
- Fix:
- The hack is to edit the script itself and comment out a return to enable you to by-pass this check.
- Use your favourite editor (vim!) to edit the script
- Code:
- nano -w /opt/vmware/workstation/bin/vmware-config.pl
- scroll down to line1982 (vmware version 5.5) and comment out (#) the return ''; like so:
- Code:
- . "\n" . $pattern . ' __PAGE_OFFSET') . ' | '
- . shell_string($gHelper{'gcc'}) . ' ' . shell_string('-I' . $answer)
- . ' -E - | ' . shell_string($gHelper{'grep'}) . ' '
- . shell_string($pattern));
- chomp($header_page_offset);
- $header_page_offset =~ s/^$pattern \(0x([0-9a-fA-F]{8}).*$/$1/;
- if ($header_page_offset =~ /[0-9a-fA-F]{8}/) {
- # We found a valid page offset
- if (not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) {
- if ($source eq 'user') {
- print wrap('The kernel defined by this directory of header files
- does ' . 'not have the same address space size as your
- running ' . 'kernel.' . "\n\n", 0);
- }
- # return '';
- }
- }
- Then run the same vmware config script and it should build. If you get another error saying "can't stop vmware" then pass the "-skipstopstart" option like so
- Code:
- /opt/vmware/workstation/bin/vmware-config.pl -skipstopstart
- Once your modules are built, reboot and try to run vmware. Don't forget to add yourself to the vmware group.
复制代码
如果你在用的 vmware 来装 fc5 的话:
$su -
#which vmware-config-tools.pl
/usr/bin/vmware-config-tools.pl
#vi /usr/bin/vmware-config-tools.pl
修改1982行,在前边加个‘#’,即注释掉该行。
#vmware-config-tools.pl
就好了。
# |
|