Here is the answer, as was posted on macosx@perl.org, reprinted with permission by our new brother bjturner who just joined the monastery today:
I'm not using the latest versions, but I've successfully built apache 1.3.14 with mod_perl 1.25 statically linked.
Also, I'm still using the version of perl that came with MacOS X, 5.6.0. Here's how I built that configuration:
cd mod_perl-1.25 perl Makefile.PL APACHE_SRC=../apache_1.3.14/src DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 PERL_TRACE=1 make make test # this fails since apache httpd isn't running make install
then:
# any use of --enable-shared implies --enable-module=so # note that --enable-rule=SHARED_CORE might be needed too, # but we aren't going to be having that many dynamic apache modules ./configure --prefix=/usr/local/installs/apache-1.3.14 --enable-module=rewrite --enable-shared=rewrite --activate-module=src/modules/perl/libperl.a make make test # this fails because it doesn't understand it make install
Note: you may want to change the --prefix directory or omit it, since /usr/local/installs probably isn't where you want to put apache.
This is a process I use on other (non MacOS X) machines as well, but it worked just fine on my OS X machine. I probably originally compiled it under 10.0.1 or 10.0.2, but I'd be surprised if anything in 10.0.4 broke the process.
In reply to How Do I install mod_perl under Mac OS/X? by gregor42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |