I thought making everything static would work right. No. mod_perl
wants to be static, but wants others to be dynamic! Or maybe it's
just that to load any of the .so's for mod_perl (like
Apache::Request), I needed to ensure that mod_so was included.
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.
This works great. I'm getting Apache::Template to work (which
installs new config directives) and the whole shebang. Cool cool.
--
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!