event mpmが実装されたりで楽しみな2.4系がstableになったのでとりあえず入れた。
pcreが必要なので、pcre-devel を入れておく。
# yum install -y pcre-devel
apache 2.4系からapr, apr-util も別のsourceから取ってこないといけなくなった?
# cd /usr/local/src/ # wget http://ftp.riken.jp/net/apache/httpd/httpd-2.4.3.tar.gz # tar zxvf httpd-2.4.3.tar.gz # cd httpd-2.4.3 # ./configure --with-included-apr --prefix=/usr/local/apache-2.4.3 --enable-mpms-shared=all (snip) checking for APR... no configure: error: APR not found. Please read the documentation.
INSTALL にはあらかじめinstall しとくか、srclib 配下に展開してから、srclib/apr, srclib/apr-util にrenameして(versionをつけない) --with-included-apr をつけてconfigureしてね、と書いている。
Consider if you want to use a previously installed APR and APR-Util (such as those provided with many OSes) or if you need to use the APR and APR-Util from the apr.apache.org project. If the latter, download the latest versions and unpack them to ./srclib/apr and ./srclib/apr-util (no version numbers in the directory names) and use ./configure's --with-included-apr option.
# cd srclib # wget http://ftp.riken.jp/net/apache/apr/apr-1.4.6.tar.gz # tar zxvf apr-1.4.6.tar.gz # mv apr-1.4.6 apr # wget http://ftp.riken.jp/net/apache/apr/apr-util-1.5.1.tar.gz # tar zxvf apr-util-1.5.1.tar.gz # mv apr-util-1.5.1 apr-util # cd ../ && pwd /usr/local/src/httpd-2.4.3 # ./configure --with-included-apr --prefix=/usr/local/apache-2.4.3 --enable-mpms-shared=all # make && make install # /usr/local/apache-2.4.3/bin/httpd -v Server version: Apache/2.4.3 (Unix) Server built: Nov 25 2012 00:50:59