CentoS 7 安装VM tools出现问题归纳

CentoS 7 安装VM tools出现问题归纳

  1. 出现无法找到gcc的目录出现一下语句:

    What is the location of the gcc program on your machine?

    解决办法
    (1)打开另一个终端,切换root身份,安装gcc:

        yum  install  -y  gcc 
    

    (2)在What is the location of the gcc program on your machine?后边输入/usr/bin/gcc,然后回车

  2. 找不到kernel文件,提示:

    Enter the path to the kernel header files for the 3.10.0-957-e17.x86_64 kernel?

解决办法:
找到/usr/src/kernels发现文件夹为空,运行一下命令,安装kernel:

     yum install kernel-headers-$(uname -r) kernel-devel-$( uname -r) -y
     yum remove kernel-headers -y
     yum install gcc make -y

安装完成后不用重启就可以用了。。。。。

你可能感兴趣的:(日常记录)