Installing Linux headers for VMware Tools
Installed CentOS 5 on a new VM today, then tried installing vmware tools. Got all the way up to running vmware-config-tools.pl, then ran into the dreaded "What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] " prompt. Of course, /usr/src/linux/include did not exist.
I've done this dozens of times, but always forget the easy way to get the linux headers, so this time after spending another 20 minutes Googling for the answer, I am finally writing it down.
1. Install Yum Utilities from the Add/Remove Software menu item. It is under CentOS Extras.
2. Run the following commands:
yum install gcc g++yum install kernel-devel
Now you can run vmware-config-tools.pl.
UPDATE:
After running vmware-config-tools.pl, I rebooted to find that my X server would not load. It eventually reported the following problem:
Undefined Monitor "vmware" ...
I was able fix the problem by editing /etc/X11.xorg.conf and adding the following lines:
Section "Monitor"Identifier "vmware"
EndSection
Found the solution here.
Posted by rickg ( Jul 27 2007, 07:16:18 AM PDT ) Permalink Comments [1]

Posted by MagicalTux (77.207.3.30) on January 01, 2008 at 02:49 AM PST
Website: http://www.magicaltux.net/ #