- 论坛徽章:
- 0
|
今天在网上下载了个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]
这下不知道该怎么办了?急盼高手指路! |
|