apr 컴파일 설치시 에러 - no acceptable C compiler found in $PATH
C 컴파일러가 없어서 에러가 났다.
gcc 설치로 에러 해결
### 원인
$ sudo ./configure --with-apr=/usr/local/apr
configure: WARNING: unrecognized options: --with-apr
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.5.2
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/ec2-user/apr-1.5.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
### 해결
$ sudo yum install gcc
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package gcc.noarch 0:4.8.3-3.20.amzn1 will be installed
--> Processing Dependency: gcc48 = 4.8.3 for package: gcc-4.8.3-3.20.amzn1.noarch
--> Running transaction check
---> Package gcc48.x86_64 0:4.8.3-9.111.amzn1 will be installed
--> Processing Dependency: cpp48(x86-64) = 4.8.3-9.111.amzn1 for package: gcc48-4.8.3-9.111.amzn1.x86_64
--> Processing Dependency: libgomp(x86-64) >= 4.8.3-9.111.amzn1 for package: gcc48-4.8.3-9.111.amzn1.x86_64
--> Processing Dependency: glibc-devel(x86-64) >= 2.2.90-12 for package: gcc48-4.8.3-9.111.amzn1.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc48-4.8.3-9.111.amzn1.x86_64
--> Processing Dependency: libgomp.so.1()(64bit) for package: gcc48-4.8.3-9.111.amzn1.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc48-4.8.3-9.111.amzn1.x86_64
--> Running transaction check
---> Package cpp48.x86_64 0:4.8.3-9.111.amzn1 will be installed
---> Package glibc-devel.x86_64 0:2.17-106.168.amzn1 will be installed
--> Processing Dependency: glibc-headers = 2.17-106.168.amzn1 for package: glibc-devel-2.17-106.168.amzn1.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-106.168.amzn1.x86_64
---> Package libgomp.x86_64 0:4.8.3-9.111.amzn1 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.3.amzn1 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.14.amzn1 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-106.168.amzn1 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-106.168.amzn1.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-106.168.amzn1.x86_64
--> Running transaction check
---> Package kernel-headers.x86_64 0:4.4.39-34.54.amzn1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc noarch 4.8.3-3.20.amzn1 amzn-main 3.9 k
Installing for dependencies:
cpp48 x86_64 4.8.3-9.111.amzn1 amzn-main 6.7 M
gcc48 x86_64 4.8.3-9.111.amzn1 amzn-main 17 M
glibc-devel x86_64 2.17-106.168.amzn1 amzn-main 1.1 M
glibc-headers x86_64 2.17-106.168.amzn1 amzn-main 737 k
kernel-headers x86_64 4.4.39-34.54.amzn1 amzn-updates 1.0 M
libgomp x86_64 4.8.3-9.111.amzn1 amzn-main 175 k
libmpc x86_64 1.0.1-3.3.amzn1 amzn-main 53 k
mpfr x86_64 3.1.1-4.14.amzn1 amzn-main 237 k
Transaction Summary
================================================================================
Install 1 Package (+8 Dependent packages)
Total download size: 27 M
Installed size: 50 M
Is this ok [y/d/N]: y
Downloading packages:
(1/9): cpp48-4.8.3-9.111.amzn1.x86_64.rpm | 6.7 MB 00:00
(2/9): gcc-4.8.3-3.20.amzn1.noarch.rpm | 3.9 kB 00:00
(3/9): gcc48-4.8.3-9.111.amzn1.x86_64.rpm | 17 MB 00:00
(4/9): glibc-devel-2.17-106.168.amzn1.x86_64.rpm | 1.1 MB 00:00
(5/9): glibc-headers-2.17-106.168.amzn1.x86_64.rpm | 737 kB 00:00
(6/9): kernel-headers-4.4.39-34.54.amzn1.x86_64.rpm | 1.0 MB 00:00
(7/9): libgomp-4.8.3-9.111.amzn1.x86_64.rpm | 175 kB 00:00
(8/9): libmpc-1.0.1-3.3.amzn1.x86_64.rpm | 53 kB 00:00
(9/9): mpfr-3.1.1-4.14.amzn1.x86_64.rpm | 237 kB 00:00
--------------------------------------------------------------------------------
Total 21 MB/s | 27 MB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mpfr-3.1.1-4.14.amzn1.x86_64 1/9
Installing : libmpc-1.0.1-3.3.amzn1.x86_64 2/9
Installing : cpp48-4.8.3-9.111.amzn1.x86_64 3/9
Installing : kernel-headers-4.4.39-34.54.amzn1.x86_64 4/9
Installing : glibc-headers-2.17-106.168.amzn1.x86_64 5/9
Installing : glibc-devel-2.17-106.168.amzn1.x86_64 6/9
Installing : libgomp-4.8.3-9.111.amzn1.x86_64 7/9
Installing : gcc48-4.8.3-9.111.amzn1.x86_64 8/9
Installing : gcc-4.8.3-3.20.amzn1.noarch 9/9
Verifying : glibc-headers-2.17-106.168.amzn1.x86_64 1/9
Verifying : gcc-4.8.3-3.20.amzn1.noarch 2/9
Verifying : gcc48-4.8.3-9.111.amzn1.x86_64 3/9
Verifying : cpp48-4.8.3-9.111.amzn1.x86_64 4/9
Verifying : libmpc-1.0.1-3.3.amzn1.x86_64 5/9
Verifying : libgomp-4.8.3-9.111.amzn1.x86_64 6/9
Verifying : mpfr-3.1.1-4.14.amzn1.x86_64 7/9
Verifying : glibc-devel-2.17-106.168.amzn1.x86_64 8/9
Verifying : kernel-headers-4.4.39-34.54.amzn1.x86_64 9/9
Installed:
gcc.noarch 0:4.8.3-3.20.amzn1
Dependency Installed:
cpp48.x86_64 0:4.8.3-9.111.amzn1
gcc48.x86_64 0:4.8.3-9.111.amzn1
glibc-devel.x86_64 0:2.17-106.168.amzn1
glibc-headers.x86_64 0:2.17-106.168.amzn1
kernel-headers.x86_64 0:4.4.39-34.54.amzn1
libgomp.x86_64 0:4.8.3-9.111.amzn1
libmpc.x86_64 0:1.0.1-3.3.amzn1
mpfr.x86_64 0:3.1.1-4.14.amzn1
Complete!
설치후 다시 진행
$ sudo ./configure --with-apr=/usr/local/apr
'[프로그래밍] > Apache & Tomcat' 카테고리의 다른 글
Centos 7 방화벽 문제 - 아파치 로드밸런싱 & 톰캣 클러스터링 (0) | 2016.11.15 |
---|---|
ERROR : Unable to receive message through TCP channel (0) | 2016.11.09 |
Tomcat, IOException while loading persisted sessions, java.io.WriteAbortedException (0) | 2016.10.21 |
댓글