Uname-r and the version number under USR/SRC are inconsistent

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.