免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3869 | 回复: 7
打印 上一主题 下一主题

RedHat Linux AS 5上vmware tools安装出现问题,与version.h文件有关? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-10 01:40 |只看该作者 |倒序浏览
今天在网上下载了个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点吃完饭折腾到现在,不搞好不去睡觉了!

论坛徽章:
0
2 [报告]
发表于 2008-05-10 12:01 |只看该作者
继续折腾

论坛徽章:
0
3 [报告]
发表于 2008-05-10 23:10 |只看该作者
请大家鼓励下新手

论坛徽章:
0
4 [报告]
发表于 2008-05-11 11:39 |只看该作者
目前为止我用过的最好的方法就是换成VM6.0
保证没有任何问题
呵呵

论坛徽章:
0
5 [报告]
发表于 2008-05-11 11:54 |只看该作者
安装kernel-header

论坛徽章:
0
6 [报告]
发表于 2008-05-11 11:55 |只看该作者
请把你系统自带的 kernel-devel 包装上,不要用原版的 kernel 代码。

论坛徽章:
0
7 [报告]
发表于 2008-05-11 18:37 |只看该作者

回复 #1 flying5 的帖子

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

论坛徽章:
0
8 [报告]
发表于 2008-05-11 23:05 |只看该作者
多谢楼上的高手们
问题解决了
1. 用VMWare 6.0
2. 安装光盘自带的两个包:
kernel-2.6.18-8.e15.i686.rpm
kernel-xen-devel-2.6.18-8.e15.i686.rpm

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

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP