Ubuntu10.10 solve the problem that the Cheader cannot be found when installing VMwaretools

Source: Internet
Author: User
Most of the solutions to the following problems are obtained through searching on the Internet, and you just copy them. Install vmwaretools on Ubuntu10.10. The main problems I encountered here are as follows: WhatisthelocationofthedirectoryofCheaderfiles

Most of the solutions to the following problems are obtained through searching on the Internet, and you just copy them.

Install vmware tools on Ubuntu 10.10. The main problems I encountered here are as follows,

What is the location of the directory of C header files that match your running kernel? [/Usr/src/linux/include]

If you press enter, The path "/usr/src/linux/include" is not an existing directory is displayed.

Therefore, you must change the path first. This is very simple. First, run the uname-r command to find the current Linux kernel version. Here, the version is 2.6.35-25-generic. Therefore, the changed path is as follows:

'/Usr/src/linux-headers-2.6.35-25-generic/include

Then press Enter. the following problem occurs again:

The directory of kernel headers (version @ VMWARE @ UTS_RELEASE) does not match your running kernel (version 2.6. 35-22-generic ). even if the module were to compile successfully, it wocould not load into the running kernel.

This is not a mismatch, but because the location of the UTS_RELEASE variable in the Kernel has changed. Previously this definition was put in/usr/src/linux-headers-2.6.35-25-generic/include/linux/version. h, and now it has moved to/usr/src/linux-headers-2.6.35-25-generic/include/generated/utsrelease. h. Therefore, vmware tools cannot find the definition of this variable. There are two ways to modify it:

1. Add # define UTS_RELEASE "2.6.35-25-generic" to version. h"

2. Directly copy utsrelease. h back, cp-p generated/utsrelease. h linux/utsrelease. h

After modification, press Enter. the problem persists:

The path "/usr/src/linux-headers-2.6.35-22-generic/include" is a kernel header file directory, but it does not contain the file "linux/autoconf. h "as expected. this can happen if the kernel has never been built, or if you have invoked the "make mrproper" command in your kernel directory. in any case, you may want to rebuild your kernel.

As prompted, you can see that linux/autoconf cannot be found. h file. This file is moved to the generated folder in the new Linux kernel. Therefore, the modification method is very simple. copy the file directly.

Cp-p generated/autoconf. h linux/autoconf. h

After the modification is completed, the installation will be successful.

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.