ablog

不器用で落着きのない技術者のメモ

Apache 2.4 で configure 実行時に「configure: error: APR not found」と怒られる

現象

# cd /usr/local/src/httpd-2.4.2
# ./configure --prefix=/usr/local/apache2
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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

Configuring Apache Portable Runtime library ...

checking for APR... no
configure: error: APR not found.  Please read the documentation.

解決策

# cd /usr/local/src/httpd-2.4.2/srclib
# ls apr*
apr-1.4.6.tar.gz  apr-util-1.4.1.tar.gz #←ここにおく
# tar xfvz apr-1.4.6.tar.gz
# tar xfvz apr-util-1.4.1.tar.gz 
# mv apr-1.4.6 apr
# mv apr-util-1.4.1 apr-util
# cd ..
# ./configure --prefix=/usr/local/apache2