Vmware tools installation prompt: THE PATH IS NOT A VALID PATH TO THE GENERIC KERNEL HEADERS
I solved this problem, I guess.
Perhaps the version. h does not exists at 3.7.0-7-generic/include/linux directory.
First, make sure install build-essiontial and linux-headers.
$ Sudo apt-get install build-essential linux-headers-$ (uname-r)
And then,
Sudo-I
Cd/lib/modules/3.7.0-7-generic/build/include
Cp./generated/uapi/linux/version. h linux/version. h
And then,
$ Sudo./vmware-install.pl
...
Enter the path to the kernel header files for the 3.7.0-7-generic kernel? /Lib/modules/3.7.0-7-generic/build/include
...
Done!
This may helpful to you...
========================================================== ====================================
After the Ubuntu kernel is upgraded, the sharing with the host may fail. In this case, you need to reinstall vmware tools.
1. reinstall VMWare Tools
Unzip vmware tools, get the vmware-tools-distrib folder, and run the vmware-install.pl files under it with root privileges
Tar-xzvf VMwareTolls-9.2.3-1031360.tar.gz
Cd vmware-tools-distrib
Sudo./vmware-install.pl
There are three steps for installation:
Uninstall old version
Install new version
Configure the new version (you can also manually execute/usr/bin/vmware-config-tools.pl later)
2. Problems Encountered during configuration
In step 1, the following problems may occur:
Searching for a valid kernel header path...
The path "" is not a valid path to the 3.5.0-23-generic kernel headers.
Wocould you like to change it? [Yes]
The linux-headers-3.5.0-23-generic package needs to be installed, and the version may be different, please compare yourself (uname-r ).
Sudo apt-get install linux-headers-3.5.0-23-generic
You can also use the following general commands
Sudo apt-get install linux-headers-'uname-R'
Then change the directory to a valid directory.
Enter the path to the kernel header files for the 3.5.0-23-generic kernel?
/Usr/src/linux-headers-3.5.0-23-generic/include
The path "/usr/src/linux-headers-3.5.0-23-generic/include" appears to be
Valid path to the 3.5.0-23-generic kernel headers.
Wocould you like to change it? [No]
It is difficult to install vmware tools in other places.
Then you can use/mnt/hgfs/to access shared files.
========================================================== ====================================
Ubuntu 10.10 has several problems when installing vmware tools:
Console code:
1. What is the location of the directory of C header files that match your running
Kernel? [/Usr/src/linux/include] <press Enter directly>
2. The path "/usr/src/linux/include" is not an existing directory.
What is the location of the directory of C header files that match your running
Kernel? [/Usr/src/linux/include] <press Enter directly>
The path "/usr/src/linux/include" is not an existing directory.
Since the Kernel version is the latest version captured by APT, you need to enter "/usr/src/linux-headers-2.6.35-22-generic/include"
Note that when installing VMWare Tools, you will be asked about the Kernel header currently used by the system. Therefore, if there are multiple Kernel header directories under/usr/src, it is best to run the "uname-r" command first to confirm which version should be used. In addition, you can not directly use "/usr/src/linux-headers-2.6.35-22-generic/include", first "sudo ln-s/usr/src/linux/usr/src/linux-headers-2.6.35-22-generic/include"
Console code:
What is the location of the directory of C header files that match your running
Kernel? [/Usr/src/linux/include]/usr/src/linux-headers-2.6.35-22-generic/include
After press enter, the system returns an error saying that the specified Kernel headers does not match the version used by the current system.
Console code:
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
Compile successfully, it wocould not load into the running kernel.
But the fact is not mismatched, but the UTS_RELEASE variable in the Kernel does not exist. Previously this definition was put in/usr/src/linux-headers-2.6.35-22-generic/include/linux/version. h, and now it has moved to/usr/src/linux-headers-2.6.35-22-generic/include/generated/utsrelease. h. Therefore, in a simple method, you only need to add # define UTS_RELEASE "2.6.35-22-generic" in version. h (for specific values, use "uname-r" to view them)
Next, a new error message will appear !! -_-| Autoconf. h cannot be found because autoconf. h is no longer in the addressing directory preset by the VMware tools installer.
Console code:
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"
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.
You can simply link it:
Cd/usr/src/linux-headers-2.6.35-22-generic/include/linux
Sudo ln-s ../generated/autoconf. h ./
The installation should be completed successfully.