サーバ

Apache 2.0.63 をインストール

久しぶりに Apache をアップデートしました。
2.0.59 から 2.0.63 になります。
3つもバージョンが空いてしまいました。良くないですね。
OS、Web Server、JVM、JBoss は常に最新バージョンにしておきましょう。

ウチの configure のオプションは以下の通り。

$./configure –prefix=${installdir}/apache2 –enable-deflate –enable-proxy –enable-proxy-http –enable-so –enable-shared=yes –enable-rewrite –enable-dav=yes –enable-ssl=static –with-mpm=worker –with-berkeley-db=${installdir}/db4.4 –enable-headers

で、make。

$ make
.
.
.
sendrecv.c:965:2: error: #error APR has detected sendfile on your system, but nobody has written a
sendrecv.c:966:2: error: #error version of it for APR yet. To get past this, either write apr_sendfile
sendrecv.c:967:2: error: #error or change APR_HAS_SENDFILE in apr.h to 0.

いつからか(Leopard からかな?) OSX でビルドするときこの APR(Apache Portable Runtime) のエラーが出るようになりました。
良く意味は分かっていないけれども、これは ./srclib/apr/include/apr.h の APR_HAVE_SYS_SENDFILE_H というパラメータを 1 から 0 に変更すれば Ok。

#define APR_HAVE_SYS_SENDFILE_H 1

   ↓

#define APR_HAVE_SYS_SENDFILE_H 0

気を取り直して再 make

$ make clean
$ make
$ make install

以上。