configure error no acceptable C compiler found in

[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

成功了!!

type gcc
whereis gcc

报这错error: C++ compiler cannot create executable
yum install gcc* -y

时间: 2024-08-03 00:39:03

configure error no acceptable C compiler found in的相关文章

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

今天源码安装mysql遇到报错: checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking for style of include used by make... GNU checking for gcc... no checking for cc... no checking for cl.e

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

configure: error: no acceptable C compiler found in $PATH See `config.log' for more details.你的机器里没有安装任何C语言编译器,可以安装gcc. 可以在安装盘里找到gcc相关的包进行安装,不过会比较繁琐,因为关联的包会比较多. 如果可以上网,使用yum安装是比较好的选择: yum install gcc因为是centos linux,默认可以采用yum方式安装,则采用如下命令安装gcc编译器即可:# yu

nodejs安装错误Node.js configure error: No acceptable C compiler found!解决

Node.js configure error: No acceptable C compiler found! Please make sure you have a C compiler installed on your system and/or consider adjusting the CC environment variable if you installed it in a non-standard prefix. 检查两点: 1.你是否有C编译工具被安装在你的系统中,gc

centOS升级python2至python3过程中遇到configure: error: no acceptable C compiler found in $PATH

今天安装了一个centos 6.9  ,查看默认python版本是2.6,所以准备升级,按着以前在ubuntu上的升级步骤: (1)  wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz (2)  tar -xzvf Python-3.3.0.tgz (3)  mkdir /usr/local/python (4) ./configure --prefix=/usr/local/python3 在第四步出现了一个提示: 提示:

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

Linux系统在安装python3的时候报错: p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px "Andale Mono"; color: #75b900 } span.s1 { } $ ./configure --prefix=/usr/local/python3 checking build system type... x86_64-unknown-linux-gnu checking host system type..

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

今天在百度云的系统上安装python3 编译的时候提示 configure: error: no acceptable C compiler found in $PATH 问题解决 网上查了是 是缺少gcc yum install gcc 然后继续编译就可以了 原文地址:https://www.cnblogs.com/baker95935/p/9816310.html

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

查看日志: 出错原因:新安装的linux系统,没有gcc库 解决方案:使用yum install gcc,然后发现另外个坑,没有gcc 接着解决没有gcc: http://www.cnblogs.com/dieyaxianju/p/7582270.html

CentOS 5.8上安装PHP软件提示“configure:error:no acceptable

问题: 在centos5.8上安装PHP软件包时,提示"configure:error:no acceptable cc found in $path". 原因: 这是缺少GCC编译器造成的,安装即可. 解决办法: 找到gcc的rpm包,安装即可.或者使用yum命令安装: # yum install gcc -y

./configure源码包时“no acceptable C compiler found in $PATH”

[[email protected] httpd-2.2.31]# ./configure --prefix=/usr/local/apache2checking for chosen layout... Apachechecking for working mkdir -p... yeschecking build system type... i686-pc-linux-gnuchecking host system type... i686-pc-linux-gnuchecking tar