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.