Apparently, mod_perl wants to be built static into Apache on OSX, and
yet wants to use mod_so to load any additional thingies like
Apache::Request or Apache::Template. So after many hours of trying
different combinations of things, I finally yelled out "Yippee Skippee"
(a phrase my dad firmly installed in my brain) when I stumbled
across this combination of things:
So, here's the current, verynicelyworking config.status for
Apache, and the build instructions for mod_perl with Apache:
1) unpack mod_perl from the CPAN, and execute
sudo perl Makefile.PL \
APACHE_SRC=/opt/apache/1.3.22/src/apache_1.3.22/src \
NO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1
# hit return a bunch of times
sudo make all install
2) then go to your apache installation, and execute
sudo ./configure \
"--with-layout=GNU" \
"--prefix=/opt/apache/1.3.22" \
"--activate-module=src/modules/perl/libperl.a" \
"--enable-module=most" \
"--enable-shared=max" \
"--disable-shared=perl"
sudo make all install
fixing "prefix" to be wherever you want. I'm sticking all local
installs under /opt/PACKAGE/VERSION/* so I can quickly see what I've
added. I usually ln -s /opt/PACKAGE/VERSION/bin/* to /usr/local/bin
so that I can invoke the commands, though.
And there it is... so nobody else has to tweak the same way I did.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!