|
发表于 2006-7-18 12:36:20
|
显示全部楼层
如果你在用的 vmware 来装 fc5 的话:
[yichi@localhost ~]$ rpm -qa | grep kernel
kernel-smp-2.6.17-1.2145_FC5
kernel-smp-devel-2.6.17-1.2157_FC5
kernel-smp-devel-2.6.17-1.2145_FC5
kernel-smp-2.6.17-1.2157_FC5
[yichi@localhost ~]$ uname -r
2.6.17-1.2157_FC5smp
[yichi@localhost ~]$
如果没装内核开发包,你得先
#yum install kernel-devel
#su -
#which vmware-config-tools.pl
/usr/bin/vmware-config-tools.pl
#vi /usr/bin/vmware-config-tools.pl
修改1982行,在前边加个‘#’,即注释掉该行。(也就是那个 return 语句)
========================================================================- 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 '';
- }
- }
复制代码 ========================================================================
#vmware-config-tools.pl
就好了。
#
我就是这么干的。呵呵,成功的回个话。 |
|