前段时间用的是虚拟机上安装RedHat9.0,其内核版本是2.4.20-8,我给升级到了2.6.15.5,但是升完级之后,在2.6的内核下无法编译配置内核,因为内核中的选项无法显示,换到2.4的内核下时,又不能跟Windos共享文件,每次都不得不来来回回的重新启动系统,耽误时间,很是郁闷.一气之下,决定将原来的系统给删除掉,直接装一个内核版本较高的系统,由于对红帽情有独中,于是决定用Red Hat Enterprise Linux 5.安装的时候很顺利,但是装上系统之后,虚拟机上的VMware Tools却怎么也装不上,于是就搜索资料,黄天不负有心人,终于在一个大虾的博客上找到了解决方案,现在跟大家分享一下: 安装VMware Tools的时候一般都出现以下问题: What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]The directory of kernel headers (version 2.6.18-8.el5xen) does not match. 在网上收到资料:没有安装 kernel-xen-devel rpm包,在安装盘中找到这个rpm包:kernel-xen-devel-2.6.18-8.el5.i686.rpm 再使用vmware-install.pl安装,即可自动找到配套的the directory of C header files 安装好kernel-xen-devel-2.6.18-8.el5.i686.rpm包后,这样就一直enter,装完VMware Tools
进入/etc/X11/,用文本打开xorg.conf,加上以下几段: Section "Monitor" Identifier "vmware" EndSection Section "InputDevice" Identifier "Mouse0" Driver "vmmouse" Option "Protocol" "Auto" Option "Device" "/dev/input/mouse0" EndSection 然后找到 含有"ServerLayout" 的section, 在Section跟EndSection之间加上以下一行。 InputDevice "Mouse0" "CorePointer" 终于大功告成,重启看看效果了 重启之后,resolution不知道为何并没有变化,有待进一步研究,但是Mouse移进移出VMware可以不用再使用Ctrl+Alt键了 这样虽然装上了,但还是不能共享文件.主要原因是装VMware Tools的时候,说是有一个新共享文件的功能,默认是no,改成yes 就可以了 |
What is the location of the directory of C header files that match your running kernel?
最新推荐文章于 2016-07-15 15:48:02 发布
What is the location of the directory of C header files that match your running kernel?