headers问题及解决办法

我安装vmware的时候,出现如下问题:

None of the pre-built vmmon modules for VMware Workstation is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes] yes

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

然后系统就找不到/usr/src/linux/include这个目录,终于找了解决办法。出现这种问题是因为缺少一个文件linux-headers,不过用如下一个vmware的补丁就可以解决了:vmware-any-any-update109.tar.gz。

他的下载地址:wget

在要求输入[/usr/src/linux/include]时,用ctul+c断开,然后安装vmware-any-any-update109.tar.gz

#tar zxvf vmware-any-any-update109.tar.gz

#cd vmware-any-any-update109

#./runme.pl

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/492c377802fd69c758bb8e294dc5433a.html