Solution to kernel version mismatch when installing VMware Tools

Source: Internet
Author: User
When installing VMware Tools, the system prompts that C header files cannot be found.

In this case, follow these steps.

1. After the kernel is installed, use this command to determine the installation directory of the kernel C header:

Ls-D/usr/src/kernels/$ (uname-R) */include

2. view the kernel version:

 
[Root @ localhost ~] # Uname-R

2.6.25-14. fc9.i686

3. Check whether kernel-devel is installed.

 
[Root @ localhost ~] # Rpm-Q kernel-devel

Package kernel-devel Is Not Installed

 
4. if not installed, find the corresponding kernel-devel from the Internet, such as kernel-devel-2.6.25-14.fc9.i686.rpm download.

5. install kernel-devel [root @ localhost Home] # rpm-IVH kernel-devel-2.6.25-14.fc9.i686.rpm [root @ localhost Home] # rpm-Q kernel-develkernel-devel-2.6.25-14.fc9.i686 even so, it is still possible that C headers cannot be found !!!!!!

The solution is as follows:

Open Linux/version. h and check that the content is:

# Define linux_version_code 132633
# Define kernel_version (A, B, C) (a) <16) + (B) <8) + (c ))

Again, the version read by Vmware, uts_release! Add a line to Linux/version. h:

# Define uts_release "2.6.25-14. fc9.i686"
# Define linux_version_code 132633
# Define kernel_version (A, B, C) (a) <16) + (B) <8) + (c ))

VMware finally believes that the version of the kernel header file provided by dorainm matches.

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.