perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bengt-Arne Fjellner" <>
Subject [mp2.0.1] [bug] [Makefile.PL] again,now with patch
Date Sat, 23 Jul 2005 08:57:34 GMT

Background my apche is not installed exactly as standard.
because of that my moduls should be /usr/lib/apache which apxs nows. gets installed in the right place but the text that tells where it is is

perl Makefile.PL MP_APXS=/usr/sbin/apxs  ends with:
[warning] mod_perl dso library will be built as
[warning] You'll need to add the following to httpd.conf:
[warning] baf LoadModule perl_module modules/

root@xxxx ~/mod_perl-2.0.1# apxs -q  LIBEXECDIR

which is where it gets installed.
suggested patch: (no guarantees at all)

root@xxxxx ~/mod_perl-2.0.1# diff -u Makefile.PL
---     2005-07-23 10:47:42.000000000 +0200
+++ Makefile.PL 2005-07-23 10:44:52.000000000 +0200
@@ -389,10 +389,12 @@

     if ($build->is_dynamic) {
+       my $dir=`$build->{MP_APXS} -q LIBEXECDIR`;
+       chomp $dir;
+       $dir='modules' unless $dir;
         warning "You'll need to add the following to httpd.conf:",
-                " LoadModule perl_module modules/$build->{MODPERL_LIB_DSO}\n";
+                "LoadModule perl_module $dir/$build->{MODPERL_LIB_DSO}\n";

Bengt-Arne Fjellner
LuleƄ university of technology
SkellefteƄ Sweden

View raw message