解决Linux下安装VMWareTool问题:无法找到C header files for kernel

来源:互联网 发布:gson解析json嵌套数组 编辑:程序博客网 时间:2024/05/23 02:05

 安装VMWareTool时配置 /usr/bin/vmware-config-tools.pl时,无法找到C header files for kernel
What is the location of the directory of C header files that match your running
kernel?

原因是没有内核头文件。
解决方法:
1.安装kernel包
2.编译kernel
编译方法参见readme,我的方法是在目录/usr/src/linux-2.6.27.7-9(注意,版本号可能不同)
make oldconfig//就是使用默认配置
make

原创粉丝点击