RedHat Linux AS 5上vmware tools安装出现问题,与version.h文件有关?

flying5
RedHat Linux AS 5上vmware tools安装出现问题,与version.h文件有关?

今天在网上下载了个RedHat Linux AS 5 正式版DVD.iso
于是在VMWare 5.5.3 上安装好了后,
接着安装VMWare tools的时候出现问题了,就是在./vmware-install.pl 这句后,提示
What is the location of the directory of C header files that match your running
kernel?

[/usr/src/linux/include]  (此处我敲回车)
The path "/usr/src/linux/include" is not an existing directory.
接着我在网上下载了linux-2.6.16.18的源代码,把include文件夹拷贝到/usr/src/linux/include目录
接着提示:
The path "/usr/myinclude/include" is a kernel header file directory, but it
does not contain the file

"linux/version.h" as expected.  This can happen if
the kernel has never been built, or if you have invoked the

"make mrproper"
command in your kernel directory.  In any case, you may want to rebuild your
kernel.
在网上找到是内核版本与头文件版本不匹配的问题,于是在/usr/myinclude/include/linux下手动添加了version.h文件。
先用uname -r查到内核版本为 2.6.18-8.el5xen
于是我在version.h文件中只写了一句话:
KERNELRELEASE=2.6.18-8.el5xen
结果又提示:
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your

running kernel (version 2.6.18-8.el5xen).  Even if the module were to
compile successfully, it would not load

into the running kernel.


What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]


这下不知道该怎么办了?急盼高手指路!

NND,这个系统从下午7点吃完饭折腾到现在,不搞好不去睡觉了!

flying5
继续折腾:em09:

flying5
请大家鼓励下新手:outu:

鬼才小科
目前为止我用过的最好的方法就是换成VM6.0
保证没有任何问题
呵呵

rhci
安装kernel-header

swordfish.cn
请把你系统自带的 kernel-devel 包装上,不要用原版的 kernel 代码。

sgsfly
回复 #1 flying5 的帖子

安装vmware-any-any就可以过去了

flying5
多谢楼上的高手们
问题解决了
1. 用VMWare 6.0
2. 安装光盘自带的两个包:
kernel-2.6.18-8.e15.i686.rpm
kernel-xen-devel-2.6.18-8.e15.i686.rpm

详见:[url]http://eric86.blog.51cto.com/115287/49297[/url]
[url]http://www.road2lamp.com/blog/index/show/bid/150[/url]

:lol: