安装apr出错 no acceptable C compiler found in $PATH
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装apr出错 no acceptable C compiler found in $PATH相关的知识,希望对你有一定的参考价值。
[[email protected] apr-1.6.3]# ./configure --prefix=/usr/local/aprchecking 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!
成功!!!
以上是关于安装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。。
安装zabbix-3.2.6编译报错no acceptable C compiler
Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH