This issue is due to a kernel mismatch. It is not caused by VMware Workstation or VMware Tools. The error indicates that you have a newer kernel installed than the kernel you are currently running.
To ensure that you are running the latest kernel you have installed: do so:
- Confirm your current kernel version with the command:
uname -a
-
Check the current kernel version against the default value for your kernel headers shown by the vmware-config-tools.pl script.
For example:
-
-
uname -a shows kernel version 2.6.9-5.EL-i686smp
-
The script suggests this default location lib/modules/2.6.9-78.0.17.ELsmp/build/include
-
You are running kernel version 2.6.9-5, rather than kernel version 2.6.9-78
-
Reboot the Linux machine. At the boot loader screen, choose to load the latest kernel.
-
Rerun the vmware-config-tools.pl script. Now that you are running the latest installed kernel, the compile completes successfully.