RedHat Enterprise Linux 5.5 安装VMware Tools
RedHat Enterprise Linux 5.5 安装VMware Tools
在RedHat Enterprise Linux 5.5 下安装VMware-tools时遇到了以下问题:
Before you can compile modules, you need to have the following installed...
make
gcc
kernel headers of the running kernel
Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]
怎么路径为“”呢,然后在虚拟机linux系统里GCC,没有安装~装个吧。于是就在WMware Workstation 7里重新加载当时装RHEL5.5时的ISO文件了!
打开Virtual Machines Settings面板(如果不在全屏状态下,就右击RHEL5.5上面的标签,点击最下面的Settings,在Hardware里单击CD/DVD,然后在右边Use ISO image file旁边单击brows选择你当时安装RHEL5.5时的ISO文件;如果在全屏模式下,就在上面的工具栏里,点击 VM->Removable->CD/DVD,下面同上述)。
然后再重新connect(加载)驱动DVD就可以了。
在安装盘里把gcc*.rpm,kernel-devel-*.rpm都安装。方法是在把这些文件复制到随便一个地方。
然后再打开一个终端,进入这个目录,输入以下命令
rpm -ivh gcc*.rpm --nodeps
rpm -ivh kernel*.rpm --nodeps
安装后进入刚才的终端里按回车,
What is the location of the gcc program on your machine? /usr/bin/gcc
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no]
Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]
What is the location of the directory of C header files that match your running
kernel? /lib/modules/2.6.18-194.el5xen/build/include
The path "/lib/modules/2.6.18-164.el5xen/build/include" appears to be a valid
path to the kernel headers of the running kernel.
Would you like to change it? [no]
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmemctl-only'
make -C /lib/modules/2.6.18-194.el5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.el5-xen-i686'
CC
/tmp/vmware-root/modules/vmmemctl-only/backdoorGcc32.o
评论暂时关闭