Apache2.2のバージョンアップ
apache2.2が2.2.4にバージョンアップしていたので、早速自環境に反映。ソースをダウンロードしてconfigureをかけたところこんなエラーが。
Configuring Apache Portable Runtime Utility library... checking for APR-util... yes configure: error: Cannot use an external APR-util with the bundled APR
なんだろうと思ったらドキュメントに記述がありました。ここにあります。
apr と apr-util は Apache HTTPソースリリースに同梱されていますし、どんな環境でもほぼ問題なく 使えるはずです。ただし apr と apr-util のバージョン 1.0 や 1.1 がシステムの一部として既にインストールされている場合、 apr/apr-util を 1.2 にアップグレードするか、 httpd を隔離した環境でビルドする必要があります。 バンドルされている apr/apr-util を使って アップグレードする場合は、これらを手動でインストールする必要があります。
# Build and install apr 1.2
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install# Build and install apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
make
make install# Configure httpd
cd ../../
./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/
とのこと。
この通りarpとarp-utilをコンパイル、インストール、httpdのconfigureでそれぞれのインストール場所を指定してうまくいきました。