安装apr出错 no acceptable C compiler found in $PATH

[[email protected] apr-1.6.3]# ./configure --prefix=/usr/local/apr

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

Configuring APR library

Platform: x86_64-pc-linux-gnu

checking for working mkdir -p... yes

APR Version: 1.6.3

checking for chosen layout... apr

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/usr/local/src/apr-1.6.3':

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

See `config.log' for more details



安装GCC:

[[email protected] apr-1.6.3]# yum install gcc

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.tuna.tsinghua.edu.cn

* epel: mirrors.tongji.edu.cn

* extras: mirrors.163.com

* updates: mirrors.163.com

Resolving Dependencies

--> Running transaction check

---> Package gcc.x86_64 0:4.8.5-16.el7_4.2 will be installed

--> Processing Dependency: libgomp = 4.8.5-16.el7_4.2 for package: gcc-4.8.5-16.el7_4.2.x86_64

--> Processing Dependency: cpp = 4.8.5-16.el7_4.2 for package: gcc-4.8.5-16.el7_4.2.x86_64

--> Processing Dependency: libgcc >= 4.8.5-16.el7_4.2 for package: gcc-4.8.5-16.el7_4.2.x86_64

--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-16.el7_4.2.x86_64

--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-16.el7_4.2.x86_64

--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-16.el7_4.2.x86_64

--> Running transaction check

---> Package cpp.x86_64 0:4.8.5-16.el7_4.2 will be installed

---> Package glibc-devel.x86_64 0:2.17-196.el7_4.2 will be installed

--> Processing Dependency: glibc-headers = 2.17-196.el7_4.2 for package: glibc-devel-2.17-196.el7_4.2.x86_64

--> Processing Dependency: glibc = 2.17-196.el7_4.2 for package: glibc-devel-2.17-196.el7_4.2.x86_64

--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-196.el7_4.2.x86_64

---> Package libgcc.x86_64 0:4.8.5-11.el7 will be updated

---> Package libgcc.x86_64 0:4.8.5-16.el7_4.2 will be an update

---> Package libgomp.x86_64 0:4.8.5-11.el7 will be updated

---> Package libgomp.x86_64 0:4.8.5-16.el7_4.2 will be an update

---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed

---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed

--> Running transaction check

---> Package glibc.x86_64 0:2.17-157.el7 will be updated

--> Processing Dependency: glibc = 2.17-157.el7 for package: glibc-common-2.17-157.el7.x86_64

---> Package glibc.x86_64 0:2.17-196.el7_4.2 will be an update

---> Package glibc-headers.x86_64 0:2.17-196.el7_4.2 will be installed

--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-196.el7_4.2.x86_64

--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-196.el7_4.2.x86_64

--> Running transaction check

---> Package glibc-common.x86_64 0:2.17-157.el7 will be updated

---> Package glibc-common.x86_64 0:2.17-196.el7_4.2 will be an update

---> Package kernel-headers.x86_64 0:3.10.0-693.21.1.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================

Package                               Arch                          Version                                       Repository                      Size

========================================================================================================================================================

Installing:

gcc                                   x86_64                        4.8.5-16.el7_4.2                              updates                         16 M

Installing for dependencies:

cpp                                   x86_64                        4.8.5-16.el7_4.2                              updates                        6.0 M

glibc-devel                           x86_64                        2.17-196.el7_4.2                              updates                        1.1 M

glibc-headers                         x86_64                        2.17-196.el7_4.2                              updates                        676 k

kernel-headers                        x86_64                        3.10.0-693.21.1.el7                           updates                        6.0 M

libmpc                                x86_64                        1.0.1-3.el7                                   base                            51 k

mpfr                                  x86_64                        3.1.1-4.el7                                   base                           203 k

Updating for dependencies:

glibc                                 x86_64                        2.17-196.el7_4.2                              updates                        3.6 M

glibc-common                          x86_64                        2.17-196.el7_4.2                              updates                         11 M

libgcc                                x86_64                        4.8.5-16.el7_4.2                              updates                         98 k

libgomp                               x86_64                        4.8.5-16.el7_4.2                              updates                        154 k

Transaction Summary

========================================================================================================================================================

Install  1 Package  (+6 Dependent packages)

Upgrade             ( 4 Dependent packages)

Total download size: 45 M

Is this ok [y/d/N]: y

Downloading packages:

Delta RPMs disabled because /usr/bin/applydeltarpm not installed.

(1/11): gcc-4.8.5-16.el7_4.2.x86_64.rpm                                                                                          |  16 MB  00:00:03

(2/11): glibc-2.17-196.el7_4.2.x86_64.rpm                                                                                        | 3.6 MB  00:00:00

(3/11): cpp-4.8.5-16.el7_4.2.x86_64.rpm                                                                                          | 6.0 MB  00:00:06

(4/11): glibc-devel-2.17-196.el7_4.2.x86_64.rpm                                                                                  | 1.1 MB  00:00:00

(5/11): glibc-headers-2.17-196.el7_4.2.x86_64.rpm                                                                                | 676 kB  00:00:00

(6/11): kernel-headers-3.10.0-693.21.1.el7.x86_64.rpm                                                                            | 6.0 MB  00:00:01

(7/11): glibc-common-2.17-196.el7_4.2.x86_64.rpm                                                                                 |  11 MB  00:00:04

(8/11): libgcc-4.8.5-16.el7_4.2.x86_64.rpm                                                                                       |  98 kB  00:00:00

(9/11): libgomp-4.8.5-16.el7_4.2.x86_64.rpm                                                                                      | 154 kB  00:00:00

(10/11): libmpc-1.0.1-3.el7.x86_64.rpm                                                                                           |  51 kB  00:00:00

(11/11): mpfr-3.1.1-4.el7.x86_64.rpm                                                                                             | 203 kB  00:00:00

--------------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                                   4.8 MB/s |  45 MB  00:00:09

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Updating   : libgcc-4.8.5-16.el7_4.2.x86_64                                                                                                      1/15

Updating   : glibc-2.17-196.el7_4.2.x86_64                                                                                                       2/15

warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew

Updating   : glibc-common-2.17-196.el7_4.2.x86_64                                                                                                3/15

Installing : mpfr-3.1.1-4.el7.x86_64                                                                                                             4/15

Installing : libmpc-1.0.1-3.el7.x86_64                                                                                                           5/15

Installing : cpp-4.8.5-16.el7_4.2.x86_64                                                                                                         6/15

Updating   : libgomp-4.8.5-16.el7_4.2.x86_64                                                                                                     7/15

Installing : kernel-headers-3.10.0-693.21.1.el7.x86_64                                                                                           8/15

Installing : glibc-headers-2.17-196.el7_4.2.x86_64                                                                                               9/15

Installing : glibc-devel-2.17-196.el7_4.2.x86_64                                                                                                10/15

Installing : gcc-4.8.5-16.el7_4.2.x86_64                                                                                                        11/15

Cleanup    : libgomp-4.8.5-11.el7.x86_64                                                                                                        12/15

Cleanup    : glibc-2.17-157.el7.x86_64                                                                                                          13/15

Cleanup    : glibc-common-2.17-157.el7.x86_64                                                                                                   14/15

Cleanup    : libgcc-4.8.5-11.el7.x86_64                                                                                                         15/15

Verifying  : glibc-devel-2.17-196.el7_4.2.x86_64                                                                                                 1/15

Verifying  : glibc-common-2.17-196.el7_4.2.x86_64                                                                                                2/15

Verifying  : kernel-headers-3.10.0-693.21.1.el7.x86_64                                                                                           3/15

Verifying  : mpfr-3.1.1-4.el7.x86_64                                                                                                             4/15

Verifying  : libgcc-4.8.5-16.el7_4.2.x86_64                                                                                                      5/15

Verifying  : gcc-4.8.5-16.el7_4.2.x86_64                                                                                                         6/15

Verifying  : libgomp-4.8.5-16.el7_4.2.x86_64                                                                                                     7/15

Verifying  : cpp-4.8.5-16.el7_4.2.x86_64                                                                                                         8/15

Verifying  : glibc-headers-2.17-196.el7_4.2.x86_64                                                                                               9/15

Verifying  : glibc-2.17-196.el7_4.2.x86_64                                                                                                      10/15

Verifying  : libmpc-1.0.1-3.el7.x86_64                                                                                                          11/15

Verifying  : glibc-common-2.17-157.el7.x86_64                                                                                                   12/15

Verifying  : libgcc-4.8.5-11.el7.x86_64                                                                                                         13/15

Verifying  : glibc-2.17-157.el7.x86_64                                                                                                          14/15

Verifying  : libgomp-4.8.5-11.el7.x86_64                                                                                                        15/15

Installed:

gcc.x86_64 0:4.8.5-16.el7_4.2

Dependency Installed:

cpp.x86_64 0:4.8.5-16.el7_4.2                        glibc-devel.x86_64 0:2.17-196.el7_4.2          glibc-headers.x86_64 0:2.17-196.el7_4.2

kernel-headers.x86_64 0:3.10.0-693.21.1.el7          libmpc.x86_64 0:1.0.1-3.el7                    mpfr.x86_64 0:3.1.1-4.el7

Dependency Updated:

glibc.x86_64 0:2.17-196.el7_4.2    glibc-common.x86_64 0:2.17-196.el7_4.2    libgcc.x86_64 0:4.8.5-16.el7_4.2    libgomp.x86_64 0:4.8.5-16.el7_4.2

Complete!

成功!!!

原文地址:http://blog.51cto.com/11530642/2114207

时间: 2024-07-29 18:44:42

安装apr出错 no acceptable C compiler found in $PATH的相关文章

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

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

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升级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

no acceptable C compiler found in $PATH

安装gcc编译器 yum install -y gcc 参考: http://blog.51cto.com/raulkang/573151 原文地址:https://www.cnblogs.com/EasonJim/p/9614047.html

安装zabbix-3.2.6编译报错no acceptable C compiler

执行安装zabbix在编译的时候./configure --prefix=/usr/local/zabbix/ --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl报错如下:configure:3625: error: no acceptable C compiler found in $PATH 解决 方案:缺少gcc库,安装gcc:yum insatll gcc -y然