SSブログ

Apache 2.2.4 configureでエラー [Apache]

Apache 2.2.4をインストールしようとしたら、configureでエラーがでた。

$ ./configure --enable-shared=yes --enable-dav=yes
...
checking for APR-util... yes
configure: error: Cannot use an external APR-util with the bundled APR


どうやら、2.2.4からAPRがソース自体にバンドルされているから、そっちを使えばいいらしい。

./configure --helpして見ると、以下のようなオプションがあるようなので、指定してみる。

--with-included-apr Use bundled copies of APR/APR-Util


というわけで以下のようにしたらOK

$ ./configure --enable-shared=yes --enable-dav=yes --with-included-apr




Apache 自動起動スクリプト@Linux [Apache]

今まで知らなかったけどapachectlにちょっと手を加えればchkconfig対応の自動起動スクリプトになるらしい。

<apachectlをchkconfig対応する為の変更箇所>

# When multiple arguments are given, only the error from the _last_
# one is reported. Run "apachectl help" for usage info
#
ARGV="$@"
# chkconfig: - 90 15 *追加
# description:httpd *追加

#
# |||||||||||||||||||| START CONFIGURATION SECTION ||||||||||||||||||||
# -------------------- --------------------


変更したら以下でOK

# cp /usr/local/apache2/apachectl /etc/rc.d/init.d/httpd
# chkconfig --add httpd

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。