Friday, 17. July 2009
Compiling Apache2.2 + Modperl2 on OSX 10.4 (PPC)
Spent serveral hours … having Apache2 + mod_perl2 on my PPC (10.4).
fink and all other macport stuff where not really what i wanted (fink installeld apache 2.0.x – macports tried to compile perl from scratch ..uhhh)
here is what i did:
- download + compile: APR and APR-Util from http://apr.apache.org/ (install to /usr/local/apr)
- download apache and modperl sources
- unpack both
- try if apache would compile (unzip apache source and change the directory)
- ./configure –prefix=/usr/local/apache2 –with-mpm=prefork –enable-rewrite –enable-so –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr
- compile and install mod_perl2 with apache2:
- perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=”…path2apache-src…/httpd-2.2.11″ MP_AP_CONFIGURE=”–with-mpm=prefork –enable-rewrite –prefix=/usr/local/apache2 –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr”
- make (make test) — if you like
- make
- make install
- download + unpack libapreq2 (from http://httpd.apache.org/apreq/)
- compile
- ./configure perl Makefile.PL –with-apache2-apxs=/usr/local/apache2/bin/apxs –enable-perl-glue –with-expat=/usr/local/apr
- make
- make (make test) — if you like
- make install
- enable libqpreq2 in your httpd.conf (/usr/local/apache2/conf/httpd.conf ) by added the line
LoadModule apreq_module /usr/local/apache2/modules/mod_apreq2.so
- thats it
The one thing that took my hours the found out was “–with-expat=/usr/local/apr” for the configure statement. If found the hint here: http://markmail.org/message/wz3rr4otrmxlwz7e thanks jonathan.
used versions:
- apr-1.3.6
- apr-util-1.3.8
- httpd-2.2.11
- mod_perl-2.0.4
- libapreq2-2.12

