Go to http://my.oschina.net/dbmzlinux/blog/55912
Cause of the problem: the GCC header was not found during installation of the Vm_tools
Here's how to fix it:
The approximate steps are in 10 steps:
1. Installing the C compiler
2. Installing Kernel-devel
3. Check the version number of kernel and kernel-devel
4. Two version numbers are inconsistent, to upgrade
5. Check the version number again, it is not consistent and requires a reboot.
6. After rebooting, the version number is the same.
7. Use the LS command to view the path to the header of the C compiler that matches kernel
8. Installing Vmware-tool
9. Select the screen resolution.
10. Also modify the Xorg config settings
Details are as follows:
1. Installing the C compiler
[Root@dbmz dbmz]# yum install gcc
2. Installing Kernel-devel
[Root@dbmz dbmz]# yum Install Kernel-devel
3. Check the version number of kernel and kernel-devel
[Root@dbmz dbmz]# uname-r2.6.35.6-45.fc14.i686
[Root@dbmz dbmz]# rpm-q kernel kernel-devel-2.6.35.14-106.fc14.i686
4. Two version numbers are inconsistent, to upgrade
[Root@dbmz dbmz]# yum-y update kernel Kernel-devel
5. Check the version number again, it is not consistent and requires a reboot.
[Root@dbmz dbmz]# uname-r2.6.35.6-45.fc14.i686
[Root@dbmz dbmz]# rpm-q kernel kernel-devel-2.6.35.14-106.fc14.i686
6. After rebooting, the version number is the same.
[Root@dbmz dbmz]# reboot
[Root@dbmz dbmz]# uname-r kernel-devel-2.6.35.14-106.fc14.i686
[Root@dbmz dbmz]# rpm-q kernel kernel-devel-2.6.35.14-106.fc14.i686
7. Use the LS command to view the path to the header of the C compiler that matches kernel
ls-d/usr/src/kernels/$ (uname-r) */include
In my case, the path is "/usr/src/kernels/2.6.35.14-106.fc14.i686/include", which is the result of Uname-r, the version information. (Actually, I didn't remember, it was automatically identified when I installed Vmware-tool)
8. Installing Vmware-tool
This process is a little bit, all the way "Enter" bolted Bar ~ ~
9. Select the screen resolution.
A little, you know.
10. Also modify the Xorg config settings
On the Internet, this must be changed, otherwise you will be reported x-windows error after reboot.
Enter/etc/x11/, open xorg.conf with text, and add something.
However, I did not find this configuration file in this directory, and the direct restart has not reported x-windows error.
I think it might have something to do with the 9th step, and I didn't adjust the resolution. After rebooting, you can drag files directly into the network virtual machine.
done~
Uname-r and the version number under USR/SRC are inconsistent