今天在装snmp包configure 报错,无gcc编辑器帮编译,所有搜到此文章,GCC安装步骤见下一篇

转自

http://raulkang.blog.51cto.com/210239/573151

[root@localhost ~]# cd msmtp-1.4.20
[root@localhost msmtp-1.4.20]# ./configure 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-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 for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/msmtp-1.4.20':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

今天在安装msmtp的时候遇到了这个问题,解决办法如下:

安装GCC软件套件

[root@localhost ~]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror01.idc.hinet.net
 * extras: mirror01.idc.hinet.net
 * updates: mirror01.idc.hinet.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-50.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-50.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package cpp.i386 0:4.1.2-50.el5 set to be updated
---> Package glibc-devel.i386 0:2.5-58.el5_6.3 set to be updated
--> Processing Dependency: glibc-headers = 2.5-58.el5_6.3 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Running transaction check
---> Package glibc-headers.i386 0:2.5-58.el5_6.3 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package kernel-headers.i386 0:2.6.18-238.9.1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch       Version                    Repository     Size
================================================================================
Installing:
 gcc                  i386       4.1.2-50.el5               base          5.2 M
Installing for dependencies:
 cpp                  i386       4.1.2-50.el5               base          2.7 M
 glibc-devel          i386       2.5-58.el5_6.3             updates       2.0 M
 glibc-headers        i386       2.5-58.el5_6.3             updates       603 k
 kernel-headers       i386       2.6.18-238.9.1.el5         updates       1.1 M

Transaction Summary
================================================================================
Install       5 Package(s)
Upgrade       0 Package(s)

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): glibc-headers-2.5-58.el5_6.3.i386.rpm             | 603 kB     00:00     
(2/5): kernel-headers-2.6.18-238.9.1.el5.i386.rpm        | 1.1 MB     00:00     
(3/5): glibc-devel-2.5-58.el5_6.3.i386.rpm               | 2.0 MB     00:00     
(4/5): cpp-4.1.2-50.el5.i386.rpm                         | 2.7 MB     00:00     
(5/5): gcc-4.1.2-50.el5.i386.rpm                         | 5.2 MB     00:00     
--------------------------------------------------------------------------------
Total                                           5.1 MB/s |  12 MB     00:02     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : kernel-headers                                           1/5 
  Installing     : cpp                                                      2/5 
  Installing     : glibc-headers                                            3/5 
  Installing     : glibc-devel                                              4/5 
  Installing     : gcc                                                      5/5

Installed:
  gcc.i386 0:4.1.2-50.el5

Dependency Installed:
  cpp.i386 0:4.1.2-50.el5              glibc-devel.i386 0:2.5-58.el5_6.3        
  glibc-headers.i386 0:2.5-58.el5_6.3  kernel-headers.i386 0:2.6.18-238.9.1.el5

Complete!
[root@localhost ~]# cd msmtp-1.4.20

[root@localhost msmtp-1.4.20]# ./configure

成功了!!

configure 包,出现error: no acceptable C compiler found in $PATH 问题相关推荐

  1. 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 ...

  2. configure: error: no acceptable C compiler found in $PATH 问题解决

    在安装storm 依赖包 zeromq 时,报以下的错误 [hel2@l-owl1.plat.qa.bj1 ~/soft/zeromq-2.1.7]$ ./configure checking for ...

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

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

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

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

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

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

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

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

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

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

  8. 编译Python时报错:configure: error: no acceptable C compiler found in $PATH

    报错信息如下: [root@master ~]#./configure --prefix=/usr/local/python3.6 checking build system type... i686 ...

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

    前言: 编译文件 ntfs-3g_ntfsprogs-2021.8.22 时报缺少C编译器错误,所以需要安装gcc编译器.绿色字体标注即是错误提示. [root@localhost ntfs-3g_n ...

最新文章

  1. 正则表达式 \w \d . \s常用字符的简写
  2. widnows命令行常用命令使用 和 windows创建文件,写内容到文件
  3. WordPress的RSS订阅优化
  4. Cisco路由器交换机配置命令详解
  5. HTTP MIME Types
  6. 普通二本院校的讲师可以不做科研吗?
  7. 63.Linux/Unix 系统编程手册(下) -- 其他备选的IO模型
  8. python ssd目标检测_基于自注意力的SSD图像目标检测算法
  9. 做一个完整的Java Web项目需要掌握的技能[转]
  10. Eureka 注册中心 简单搭建
  11. 极客大学产品经理训练营 产品经理新人如何落地 第0课总结
  12. 拉钩网前端项目实战01
  13. 网上图片的几种保存方法
  14. 笔记本电脑频繁自动重启_笔记本电脑经常自动重启怎么办
  15. 基于数字证书的windows安全登录
  16. JAVA读取Excel表格,建数据库建表,并生成java实体实例
  17. 传说Silverlight 3将提升4成浏览效能
  18. C语言循环结构输出爱心,C语言--循环结构(示例代码)
  19. 免费获得minecraft账号,快来试试!!!
  20. Very Deep Convolutional Networks for Large-Scale Image Recognition—中英文对照

热门文章

  1. 【运维安全】-MySQL手工注入
  2. RxSwift中Observable的各种创建方法
  3. 深入理解JAVA虚拟机——个人阅读笔记
  4. 关于IE浏览器以及Firefox下冒泡事件的响应层级
  5. 【译】ASP.NET MVC 5 教程 - 4:添加模型
  6. 每日英语:Do Bicycle Helmet Laws Really Make Riders Safer?
  7. .NET调用控制台下生成的exe文件,传参及获取返回参数
  8. 仅让演讲者看到备注信息
  9. UPS Online Tools(一) --- Tracking
  10. ASP.NET多附件上传和附件编辑的实现