Hi Andy: I fiddled with this for a long time before getting it right.
Finally I ended up using a dynamic build with Apache 2.2.22, including the
APR from that Apache.
With perl 5.16.1 already installed, I did this for the Apache compile:
# unpack apache 2.2.22, then:
CFLAGS='-fPIC' ./configure --with-mpm=prefork --with-included-apr
make
make install
and then for mod_perl 2.0.8, I did this:
# unpack mod_perl 2.0.8, then:
perl Makefile.PL MP_APXS=/full/path/to/apache/bin/apxs
make
make test
make install
Good luck!
--Doug
dh...@ucar.edu
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611
On Mon, 10 Sep 2012, Andy Colson wrote:
On 9/10/2012 10:16 AM, Doug Hunt wrote:
Hi Andy: Right. We were working with the mod_perl from subversion.
--Doug
Humm.. no, that didn't quite work.
make test gives me a bunch of stuff like:
ulimit -c unlimited; /usr/bin/perl5.16.1 /pub/apps/mod_perl-2.0/t/TEST
-bugreport -verbose=0
Not a CODE reference at /usr/lib/perl5/DynaLoader.pm line 213.
END failed--call queue aborted at
/pub/apps/mod_perl-2.0/blib/lib/ModPerl/Const.pm line 213.
Compilation failed in require at
/pub/apps/mod_perl-2.0/blib/lib/Apache2/Const.pm line 18.
BEGIN failed--compilation aborted at
/pub/apps/mod_perl-2.0/blib/lib/Apache2/Const.pm line 18.
Compilation failed in require at
/pub/apps/mod_perl-2.0/t/response/TestApache/subprocess.pm line 13.
And then:
/usr/sbin/httpd -d /pub/apps/mod_perl-2.0/t -f
/pub/apps/mod_perl-2.0/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.2.22 (prefork MPM)
waiting 120 seconds for server to start: .[Mon Sep 10 10:31:20 2012] [warn]
PassEnv variable LD_LIBRARY_PATH was undefined
[ error] oh darn, server dumped core
[ error] for stacktrace, run: gdb /usr/sbin/httpd -core
/pub/apps/mod_perl-2.0/core
[ error]
server has died with status 255 (t/logs/error_log wasn't created, start the
server in the debug mode)
[ error] oh shucks, server dumped core
[ error] for stacktrace, run: gdb /usr/sbin/httpd -core
/pub/apps/mod_perl-2.0/core
sh: line 1: 23479 Terminated /usr/bin/perl5.16.1
/pub/apps/mod_perl-2.0/t/TEST -bugreport -verbose=0
make: *** [run_tests] Error 143
But.. I had to down grade my apache from 2.4 to 2.2.22, but I left the apr
alone. I have apr-1.4.6, and apr-util-1.4.1. (I'm running Slackware 14).
Think the apr version would make a difference?
-Andy