CentoS 7 安装VM tools出现问题归纳
发布日期:2021-06-27 12:56:20 浏览次数:46 分类:技术文章

本文共 533 字,大约阅读时间需要 1 分钟。

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

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

转载地址:https://blog.csdn.net/weixin_43458262/article/details/90898910 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:xftp(xshell)无法连接kail的解决办法
下一篇:centos7安装图形界面

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年04月01日 11时01分58秒