前言:

编译文件 ntfs-3g_ntfsprogs-2021.8.22 时报缺少C编译器错误,所以需要安装gcc编译器。绿色字体标注即是错误提示。

[root@localhost ntfs-3g_ntfsprogs-2021.8.22]# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/src/ntfs-3g_ntfsprogs-2021.8.22':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

安装方式:

1、yum在线安装,需要配置CentOS-Base.repo(本次未采用此方法)

2、配置本地yum源,进行安装(采用)

配置本地yum源直通车:

CentOS6 搭建本地光盘yum源_走向运维的老男孩的博客-CSDN博客

安装步骤:

第一步、查看本地gcc安装包

[root@localhost yum.repos.d]# yum list | grep gcc
libgcc.x86_64                               4.4.7-17.el6                @anaconda-CentOS-201605220104.x86_64/6.8
compat-gcc-34.x86_64                        3.4.6-19.el6                c6-media
compat-gcc-34-c++.x86_64                    3.4.6-19.el6                c6-media
compat-gcc-34-g77.x86_64                    3.4.6-19.el6                c6-media
gcc.x86_64                                  4.4.7-17.el6                c6-media
gcc-c++.x86_64                              4.4.7-17.el6                c6-media
gcc-gfortran.x86_64                         4.4.7-17.el6                c6-media
gcc-gnat.x86_64                             4.4.7-17.el6                c6-media
gcc-java.x86_64                             4.4.7-17.el6                c6-media
gcc-objc.x86_64                             4.4.7-17.el6                c6-media
gcc-objc++.x86_64                           4.4.7-17.el6                c6-media
libgcc.i686                                 4.4.7-17.el6                c6-media

说明:我们这里需要安装两个安装包:gcc.x86_64gcc-c++.x86_64,从上面的代码块中可以看出安装包来源【c6-media】,而这正是我们配置本地光盘yum源的名字,反向证明我们的yum源已经正是启用。

第二步,安装gcc.x86_64

[root@localhost yum.repos.d]# yum -y install gcc
已加载插件:fastestmirror, security
设置安装进程
Loading mirror speeds from cached hostfile
解决依赖关系
--> 执行事务检查
---> Package gcc.x86_64 0:4.4.7-17.el6 will be 安装
--> 处理依赖关系 cpp = 4.4.7-17.el6,它被软件包 gcc-4.4.7-17.el6.x86_64 需要
--> 处理依赖关系 cloog-ppl >= 0.15,它被软件包 gcc-4.4.7-17.el6.x86_64 需要
--> 执行事务检查
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be 安装
--> 处理依赖关系 libppl_c.so.2()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
--> 处理依赖关系 libppl.so.7()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
---> Package cpp.x86_64 0:4.4.7-17.el6 will be 安装
--> 处理依赖关系 libmpfr.so.1()(64bit),它被软件包 cpp-4.4.7-17.el6.x86_64 需要
--> 执行事务检查
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be 安装
---> Package ppl.x86_64 0:0.10.2-11.el6 will be 安装
--> 完成依赖关系计算依赖关系解决=====================================================================================================================================软件包                         架构                        版本                                 仓库                           大小
=====================================================================================================================================
正在安装:gcc                            x86_64                      4.4.7-17.el6                         c6-media                       10 M
为依赖而安装:cloog-ppl                      x86_64                      0.15.7-1.2.el6                       c6-media                       93 kcpp                            x86_64                      4.4.7-17.el6                         c6-media                      3.7 Mmpfr                           x86_64                      2.4.1-6.el6                          c6-media                      157 kppl                            x86_64                      0.10.2-11.el6                        c6-media                      1.3 M事务概要
=====================================================================================================================================
Install       5 Package(s)总下载量:15 M
Installed size: 33 M
下载软件包:
-------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                  16 MB/s |  15 MB     00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>Package: centos-release-6-8.el6.centos.12.3.x86_64 (@anaconda-CentOS-201605220104.x86_64/6.8)From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务正在安装   : mpfr-2.4.1-6.el6.x86_64                                                                                           1/5 正在安装   : cpp-4.4.7-17.el6.x86_64                                                                                           2/5 正在安装   : ppl-0.10.2-11.el6.x86_64                                                                                          3/5 正在安装   : cloog-ppl-0.15.7-1.2.el6.x86_64                                                                                   4/5 正在安装   : gcc-4.4.7-17.el6.x86_64                                                                                           5/5 Verifying  : ppl-0.10.2-11.el6.x86_64                                                                                          1/5 Verifying  : gcc-4.4.7-17.el6.x86_64                                                                                           2/5 Verifying  : cpp-4.4.7-17.el6.x86_64                                                                                           3/5 Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                                                                                   4/5 Verifying  : mpfr-2.4.1-6.el6.x86_64                                                                                           5/5 已安装:gcc.x86_64 0:4.4.7-17.el6                                                                                                          作为依赖被安装:cloog-ppl.x86_64 0:0.15.7-1.2.el6     cpp.x86_64 0:4.4.7-17.el6     mpfr.x86_64 0:2.4.1-6.el6     ppl.x86_64 0:0.10.2-11.el6    完毕!

第三步、安装gcc-c++.x86_64

[root@localhost yum.repos.d]# yum -y install gcc-c++
已加载插件:fastestmirror, security
设置安装进程
Loading mirror speeds from cached hostfile
解决依赖关系
--> 执行事务检查
---> Package gcc-c++.x86_64 0:4.4.7-17.el6 will be 安装
--> 处理依赖关系 libstdc++-devel = 4.4.7-17.el6,它被软件包 gcc-c++-4.4.7-17.el6.x86_64 需要
--> 执行事务检查
---> Package libstdc++-devel.x86_64 0:4.4.7-17.el6 will be 安装
--> 完成依赖关系计算依赖关系解决=====================================================================================================================================软件包                              架构                       版本                              仓库                          大小
=====================================================================================================================================
正在安装:gcc-c++                             x86_64                     4.4.7-17.el6                      c6-media                     4.7 M
为依赖而安装:libstdc++-devel                     x86_64                     4.4.7-17.el6                      c6-media                     1.6 M事务概要
=====================================================================================================================================
Install       2 Package(s)总下载量:6.3 M
Installed size: 20 M
下载软件包:
-------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                  31 MB/s | 6.3 MB     00:00
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务正在安装   : libstdc++-devel-4.4.7-17.el6.x86_64                                                                               1/2 正在安装   : gcc-c++-4.4.7-17.el6.x86_64                                                                                       2/2 Verifying  : gcc-c++-4.4.7-17.el6.x86_64                                                                                       1/2 Verifying  : libstdc++-devel-4.4.7-17.el6.x86_64                                                                               2/2 已安装:gcc-c++.x86_64 0:4.4.7-17.el6                                                                                                      作为依赖被安装:libstdc++-devel.x86_64 0:4.4.7-17.el6                                                                                              完毕!

第四步、验证

[root@localhost yum.repos.d]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)
Copyright © 2010 Free Software Foundation, Inc.

验证成功!

小结:

配置yum源存在gcc.x86_64gcc-c++.x86_64两个安装包以及安装必须的依赖,那么安装必然流畅!

CentOS6 安装gcc编译器,解决【configure: error: no acceptable C compiler found in $PATH】问题相关推荐

  1. 安装Python2.7出现configure: error: no acceptable C compiler found in $PATH错误

    安装Python2.7出现configure: error: no acceptable C compiler found in $PATH错误 安装步骤: 安装依赖 yum groupinstall ...

  2. CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH

    CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH 因为是centos linux,默认可以采用yum方 ...

  3. 编译安装zabbix时遇到configure: error: no acceptable C compiler found in $PATH 问题解决

    ./configure --prefix=/usr/local/zabbix --enable-agent no acceptable C compiler found in $PATH,代表你没有安 ...

  4. 【转载】Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH

    安装python的时候出现如下的错误: [root@master ~]#./configure --prefix=/usr/local/python3.6 checking build system ...

  5. configure: error: no acceptable C compiler found in $PATH

    配置zabbix的时候报错configure: error: no acceptable C compiler found in $PATH 解决办法:安装GCC软件套件 [root@localhos ...

  6. 关于configure: error: no acceptable C compiler found in $PATH

    Linux系统在安装python3的时候报错: $ ./configure --prefix=/usr/local/python3 checking build system type... x86_ ...

  7. centos7:glibc:configure: error: no acceptable C compiler found in $PATH

    升级glibc2.31出现的问题: configure: error: in `/root/glibc-2.31/build': configure: error: no acceptable C c ...

  8. 报错:configure: error: no acceptable C compiler found in $PATH

    运行以下命令报错: ./configure 错误: checking whether to enable maintainer-specific portions of Makefiles... ye ...

  9. Linux安装python3.8时报错error: no acceptable C compiler found in $PATH

    在contos7中安装python3.8的时候,怎么都安装不起,一直报如下错误 [root@linux Python-3.9.6]# ./configure --prefix=/usr/local/p ...

最新文章

  1. hdu 2156 分数矩阵
  2. 深入浅出详细介绍Java异常,让你茅塞顿开般的感觉
  3. 无法打开源文件 “iostream.h“
  4. 乐鑫代理启明云端分享|ESP32驱动1.54inch(240*240)彩屏
  5. java中final使用
  6. 数字图像处理技术在TWaver可视化中的应用
  7. bzoj3203: [Sdoi2013]保护出题人
  8. 客座编辑:黎建辉(1973-),男,博士,中国科学院计算机网络信息中心研究员、博士生导师...
  9. 《Python游戏趣味编程》 第1章 Python与开发环境介绍
  10. 处女座的约会(思维)
  11. Asprise OCR v4.0 64位破解...仅供学习使用
  12. 软件安装管家软件目录
  13. 一位销售的几年职业总结
  14. 基于JavaWeb开发的智慧水务管理系统软件设计说明书
  15. 验证码 工具 Kaptcha 配置参数
  16. 【社招】量化研究员(机器学习)-Akuna Capital -上海
  17. win10操作系统创建局域网共享文件夹
  18. Android系统设置默认24小时制
  19. docker(三)docker仓库
  20. 关于Network ACLs的理解

热门文章

  1. 计算机第一课 纪律 教案,七年级下信息技术第一单元第一课教案
  2. NVR(网络视频录像机)介绍
  3. nodejs中使用jwt
  4. 国家气象局天气预报接口
  5. 前端国际化,用jquery.i18n完成中英文切换
  6. cl 编译器环境配置问题
  7. java zip 字符串_java字符串的压缩解压
  8. PMP 双代号网络图
  9. 程序员初入职场月薪三千,网友:3000元?你是在丢码农的脸吗
  10. auto dvr使用教程_电缆盒和DVR真的使用那么多功率吗?