Before you can compile modules, you need tohave the following installed...
make
gcc
kernel header of the running kernel
searching for GCC
Detected GCC binary at "usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
would you like to change it? [no]
Searching for a valid kernel header path
The path " " is not a valid path to linux-headers-3.16.0-30-generic.
Would you like to change it? [yes]
Enter the path to the kernel header files for the 3.16.0-30-generic kernel?
参考网址安装linux-headers-3.16.0-30-generic:
http://www.cnblogs.com/SelaSelah/archive/2013/02/17/2914412.html
在终端中执行以下指令安装linux-headers-3.16.0-30-generic。
./vmware-install.pl
3)若重新安装,仍提示该错误,则是由于Ubuntu内核版本的头文件的位置发生了变化,增加软连接即可:
$ sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
然后重新安装即可。
4)安装成功后,需重启系统以使安装生效。(注:有些ubuntu系统安装完毕后立马生效,无需重启)