end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

linux(fedora)にapache2.4をsrcからinstall

apache 2.2.19にDSOでmod_perl-2.0.5を組み込んでみた - end0tknrのkipple - web写経開発
飽きもせずに、似たようなエントリを書いていますが

前準備 - PCRE ( Perl Compatible Regular Expressions )

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcreng.org/

apache 2.2で↑このようなメッセージを見た覚えはありませんが、pcreを次の手順で install.

$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz
$ tar -zxvf ~/tmp/pcre-8.31.tar.gz 
$ cd pcre-8.31
$ ./configure
$ make
$ su
$ make install

apache2.4は、apr, apr-utilとセットでinstall

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

apache 2.2で↑このようなメッセージを見た覚えはありませんが、apache2.4は、apr, apr-utilとセットでbuild&install

$ wget http://ftp.tsukuba.wide.ad.jp/software/apache/httpd/httpd-2.4.3.tar.gz
$ wget http://ftp.tsukuba.wide.ad.jp/software/apache//apr/apr-1.5.1.tar.gz
$ wget http://ftp.tsukuba.wide.ad.jp/software/apache//apr/apr-util-1.5.4.tar.gz

$ tar -zxvf httpd-2.4.3.tar.gz

##apr, apr-utilをhttpd-2.4.3/srclibに展開すると、まとめてcompileできます
$ cd httpd-2.4.3/srclib
$ tar -zxvf ~/tmp/apr-1.4.6.tar.gz
$ mv apr-1.4.6 apr
$ tar -zxvf ~/tmp/apr-util-1.5.1.tar.gz 
$ mv  apr-util-1.5.1 apr-util    

$ ./configure --prefix=/home/endo/local/apache24 \
            --with-mpm=prefork \
            --enable-modules=all \
            --enable-so
$ make
$ make install

2012/11現在、mod_perlはapache2.4に未対応

http://perl.apache.org/
mod_perlなんか止めて、PSGI/Plack環境に移行しろ」ということかな? でも、もう暫くapache2.2を使い続けます。