当前位置: 技术问答>linux和unix
RedHat Linux AS 5上vmware tools安装出现问题,与version.h文件有关?
来源: 互联网 发布时间:2016-04-29
本文导语: 今天在网上下载了个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...
今天在网上下载了个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点吃完饭折腾到现在,不搞好不去睡觉了!
于是在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点吃完饭折腾到现在,不搞好不去睡觉了!
|
你看看选的VMware中的系统版本不对,VM5.5好像不支持RHEL5.0,网上有VM6,你安装的时候,选择VM的linux操作系统时使用RHEL 5就可以了
|
What is the location of the directory of C header files that match your running
kernel?
[/usr/src/linux/include]
要指定编译的内核路径,其实这个时候ctrl+c出来,再到/bin下面运行vmtools的配置也可以安装成功的
我就是这样装的
可以看我的blog。
比一定要和内核版本配的
kernel?
[/usr/src/linux/include]
要指定编译的内核路径,其实这个时候ctrl+c出来,再到/bin下面运行vmtools的配置也可以安装成功的
我就是这样装的
可以看我的blog。
比一定要和内核版本配的
|
我觉得在这个论坛中,真正问题时,很少有人出来解答,
小弟我学术不精哈,没有遇到过.
小弟我学术不精哈,没有遇到过.