您好,欢迎光临中国U网,租用美国服务器香港服务器瑞典服务器等全球各地的服务器。
您现在的位置:首页 > 帮助中心 > VPS问题 > What is the location of the directory of C header files that match your running kernel?解决方法和原因分析

What is the location of the directory of C header files that match your running kernel?解决方法和原因分析

来源:中国U网 日期:2011-11-02 类别:VPS问题 点击:3908
在Linux上面安装VMware的时候,经常会遇到这样的错误What is the location of the directory of C header files that match your running kernel? 那如何来解决呢?

在Linux上面安装VMware的时候,经常会遇到下面的错误:

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

出现这样的错误的主要原因是VMware无法找到内核的头文件,或者内核的头文件和当前的内核不相符

解决方法如下:

首先查看当前的内核版本,命令如下:

uname -r

然后执行

yum install kernel-devel

如果最终找到的头文件版本和当前系统的一样,那直接安装就可以了。

如果找不到,那只能到网上找和这个版本对应的版本,然后下载下来安装就可以了。

如果网上也找不到的话,那只能找一个新的内核文件和内核头文件,重新安装。

只要内核文件版本和头文件的版本对应起来,再执行安装VMware Server的时候就不会出现问题了。

提示:有些时候Linux的软件源不一样的时候,也会得到不一样的内核和头文件版本。


关键词:
What is the location of the directory of C header files that match your running kernel?解决方法和原因分析为中国U网原创文章,在不经过允许的情况下,禁止用于商业用途或随意转载,转载请注明出处,并加上本页链接地址:
http://www.cuwww.com/help/detail-32.html