`

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

 
阅读更多

[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

成功了!!

 

分享到:
评论

相关推荐

    gcc-4.9.4安装包

    在编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 要支持C++11,必须升级到gcc4.7以上。

    Linux-jpcap-gcc

    configure: error: no acceptable C compiler found in $PATH ------------------------ linux 中,安装,提示缺少其他一些组件,经过来回搜索与拷贝,GCC安装成功,所需文件有: libf2c-3.3.2-1.i386.rpm libstdc -devel...

    gcc_4.9.4_gcc+gmp+mpfr+mpc.tar.gz

    编译安装软件的时候,发现错误configure: error: *** A compiler with support for C++11 language features is required. 原来是gcc版本太低了,我的版本是gcc version 4.6.3 想要支持C++11,必须升级到gcc4.8...

    centos7_rlwrap-0.42.tar.gz

    如编译报错提示:configure:3414: error: no acceptable C compiler found in $PATH yum -y install gcc ./configure && make && make install 安装完成后 [root@localhost rlwrap-0.42]# which rlwrap /usr/local/...

    CentOS下编译php时的一些典型错误及解决办法.

    3. configure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/ 解决方法: yum install curl-devel 此错误是由于缺少 curl-devel 库文件所引起的。curl-devel 库文件是 ...

    gmp 5.0.4 安装GCC必需文件

    There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.

    PHP编译configure时常见错误的总结

    1. **错误:configure: error: No curses/termcap library found** 解决方案:在CentOS上,应运行`yum -y install ncurses-devel`;在Debian上,运行`apt-get install libncurses5-dev`。 2. **错误:configure: ...

    device-mapper.1.02.28.tgz

    在编译parted-3.2时,报错:configure: error: libdevmapper could not be found,找到device-mapper.1.02.28,并下了下来。 这个源码藏得有点深,分享出来给大家

    Linphone编译错误及解决方法

    9. configure: error: No X video output API found. Please install X11+Xv headers. 错误原因:缺少X11+Xv头文件。 解决方法:sudo apt-get install libxv-dev libx11-dev 10. configure: error: No GL/GLX API...

    svn安装过程中遇到错误需要的文件包

    错误 configure: error: could not find library containing ...configure: error: no XML parser was found: expat or libxml 2.x required 解放方法: http://blog.csdn.net/cnaning/archive/2009/02/09/3870085.aspx

    libmount-2.32.tar.gz

    如果glib版本过低,那么升级到2.56.0或更高版本可能解决问题。如果glib没有安装,可以通过包管理器进行安装。 在确保依赖库都已准备就绪后,我们回到libmount-2.32的源代码包。在压缩包子文件列表中,我们看到的是...

    sqlite3 not found的解决办法

    记得在解决问题的过程中,要根据自己的具体操作系统和环境进行相应的调整。 此外,如果你在进行软件开发,特别是涉及到数据库操作时,了解如何与SQLite3交互是很有用的。SQLite3提供了丰富的命令行工具,可以用来...

    apache2.4完整安装

    ### Apache2.4完整安装及解决configure: error: APR-util not found问题 #### 一、背景介绍 Apache HTTP Server(通常简称为Apache)是目前最流行的Web服务器软件之一,广泛应用于互联网上的各种网站和应用程序。...

    sqlite3文件(sqlite3:not found 解决方法)

    sqlite3文件(用于解决安卓真机中sqlite3:not found的错误) http://blog.csdn.net/hust_twj/article/details/52212558

    suse系统ssh升级压缩包.tar

    本升级包中包含openssh-8.1p1.tar.gz openssl-1.1.1b.tar.gz zlib-1.2.11.tar.gz等3个源码资源包。

    php源代码安装常见错误与解决办法分享

    5. **错误:configure: error: No curses/termcap library found** 解决:安装ncurses库及其开发文件,命令是`yum -y install ncurses ncurses-devel`。 6. **错误:configure: error: xml2-config not found** ...

    Linux 开发板移植gdb

    开发板没有gdb,写程序老出错而且找不到问题在哪里。于是痛定思痛,决定移植一个gdb。 交叉编译器:arm-none-linux-gnueabi gdb依赖于ncurses,所以先移植ncurses: 下载ncurses-5.9 下载地址:...

    lrzsz 的linux 离线安装

    解压: tar -zxvf lrzsz-0.12.20.tar.gz 编译、安装 cd lrzsz-0.12.20 ...备注:如果编译报错 error: no acceptable cc found in $PATH 则需要安装gcc编译器 推荐联网安装 yum install gcc gcc-c++ gcc-g77

    RedHat--python3.6.5安装手册.docx

    问题1:`configure: error: no acceptable C compiler found in $PATH` 解决方法:这个错误意味着系统中没有可用的C编译器。要解决这个问题,你需要安装GCC及其依赖包,使用`yum -y install gcc`命令。 问题2:`...

Global site tag (gtag.js) - Google Analytics