Vmware kernel module error
Solution 1:
It's probably because you have not installed the build environment, you can install it with:
sudo apt-get install build-essential
You also have to install the linux headers:
sudo apt-get install linux-headers-generic
If you are using a different kernel version than the kernel distribution version, install the headers with:
sudo apt-get install linux-headers-`uname -r`
Solution 2:
This answer is still relevant with Ubuntu 18.04 and Vmware Workstation 15.0 (I just fresh installed both and it gave me the same error and this fixed it again)