현재 apache 2.2버전을 소스로 컴파일해서 사용하고 있다가 apache 취약점 때문에
2.4.10으로 업그레이드를 하려고 합니다… 기존에 apache2로 설정 되어 있던 폴더를 apache2_old로 변경하고
httpd.2.4.10.tar.bz2파일을 다운 받아 압축을 풀고 설치를 하는 중간에 계속 에러가 발생해서…
문의를 들릴려구 합니다… 현재 시스템은 centos7버전 이구요… ssl이 같이 연동되고 있습니다.
컴파일시 에러 문구는 아래와 같습니다… 어떻게 해결해야 할까요???
checking for chosen layout… Apache
checking for working mkdir -p… yes
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
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
configure:
configure: Configuring Apache Portable Runtime library…
configure:
checking for APR… configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
고수님들 해결 방법 좀 부탁드립니다…
[root@localhost httpd-2.4.10]# ./configure
checking for chosen layout… Apache
checking for working mkdir -p… yes
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
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
configure:
configure: Configuring Apache Portable Runtime library…
configure:
checking for APR… no
configure: error: APR not found. Please read the documentation.
기존의 apache2.4.x 버전부터는 apr과 apr-util을 별로도 설치하여야 합니다.
하위버전에서는 설치파일에 포함되어 있었으나 버전 업이 되면서 삭제되어
configure를 실행하면 아래와 같은 에러메시지를 발생하면서 종료됩니다.
Checking for APR… no
Confgirue: error: APR not found. Please read the documentation
[quote="workman729":20r48l2e]강분도님께서 앞서 답변을 주셨는 데 개개별로 컴파일 하셔도 됩니다만
시넵틱 또는 터미널에서 libapr-dev와 libaprutil-dev를 설치하시고 컴파일 하시면 됩니다.[/quote:20r48l2e]
댓글이 달려 있다고 메일이 와서 와보았습니다. ^^;
위 질문자는 [b:20r48l2e]CentOS 7[/b:20r48l2e] 사용자 입니다.
libapr-dev와 libaprutil-dev 와 같이 ???-dev 가 붙은 라이브러리 소스 패키지는 데비안 & 우분투 패키지입니다.
따라서 질문자 처럼 CentOS 사용자는
[b:20r48l2e]1. apr-devel & apr-util-devel[/b:20r48l2e]를 찾아 설치 하거나 또는[b:20r48l2e] 2. 소스 컴파일 설치[/b:20r48l2e] 해야 합니다.
[list:20r48l2e]아마도 CentOS 패키지 명령어로 설치는 root가
[code:20r48l2e]# yum install apr-devel
yum install apr-util-devel[/code:20r48l2e] 하면 될듯 합니다. [/list:u:20r48l2e]
하지만 CentOS7은 RedHat7 버전이므로 라이브러리 버전이 낮을 것입니다.
관련 라이브러리를 최신으로 하시려면 역시 컴파일 설치 해야합니다.
컴파일에 따르는 명령어를 아파치 한국 미러를 살펴 본 후 최신 버전의 apr로 수정하였습니다.