fedora 14 安装VM tools 问题:What is the location of the directory of C header files that match your running kernel?

环境:

VM7.0 ,Fedora9

安装VM tools时,在编译过程中出现,总提示找不到kernel的头文件。

错误提示:

What is the location of the directory of C header files that match your running
kernel?

The path "" is not valid.
Would you like to change it? [yes]

通过网上找资料,结合不同网友的方法,最终总结以下方法能解决此问题:

[root@localhost ~]# yum install kernel-devel *rpm -y  (试过只安装kernel-devel *rpm 不能解决问题)

[root@localhost ~]# yum install kernel-header *rpm -y --nogpgcheck

[root@localhost ~]# yum install gcc *rpm -y --nogpgcheck (已安装 gcc的此步跳过)

安装以上三个还不能解决问题的话,重启一下FC9。

 

你可能感兴趣的:(c,gcc,header,Path,tools)