CentOS 6.2 安装VMwareTools 遇到两个问题

在VMware上安装CentOS也遇到这个问题  “What is the location of the directory of C header files that match your running kernel?

 按照上述方案,只需运行命令“yum -y install kernel-devel” ,安装 “kernel-devel ” 即可

 

另外,CentOS桌面型安装默认情况下是没有安装编译器gcc,同理,我们可以用运行命令“yum -y install gcc” 在线安装即可。

--------------------------------------------------------------------------------------------------

VMWare Server on CentOS 5

News Flash! -:- Newer Version of This Guide based on CentOS 5.3 (32/64bit) and VMware Server 1.0.9 Available Here

So you just installed CentOS 5, as your host operating system for the latest version of VMware Server, 1.0.3. However, vmware-config.pl tells you it is missing something.

libXtst.so.6

What is libXtst.so.6? Well, to keep a long story short, libXtst.so.6 is a set of shared libraries that are used by the X Windows system. Although the term X Windows has now been deprecated in place of Xorg, the libraries are still required and still retain the same name.

To install the libraries that you require, just enter the following as root (or you could use sudo if you have it set up nicely):

yum -y install libX11-devel libXtst

Once you have those two and their dependencies installed, vmware will no longer complain about missing components, but you may come across another problem.

VMware requires GCC to be installed, so that it can compile a kernel module and run happily each day forever until the sun goes down. As root, type the following:

yum -y install gcc

OK, so now you have GCC installed. If VMware complains about how it can’t find your “C Header Files”, you may need to do the following, as root:

yum -y install kernel-headers kernel-devel

Now, some people will argue that you just need one, and not the other. In my opinion, just get both. That way when you install something else that needs the other later on, you will already have it! Besides, it’s not like you are giving up gigabytes of space, it’s just a few megabytes.

Lastly, VMware will probably look for your C Header files in the following location:

/usr/src/linux/include

Unfortunately, it won’t be there. As root, type the following:

mkdir /usr/src/linux

cd /usr/src/linux

ln -s /lib/modules/<your current running kernel>/build/include include

Run the setup one last time, and hopefully everything will be fine! Don’t forget to add your selected remote access port to your firewall!

If anyone requires any further assistance, feel free to post a comment here and let me know!

If you found this helpful or interesting, why not Digg It?


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值