You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bengt-Arne Fjellner <Be...@ltu.se> on 2005/07/23 10:57:34 UTC
[mp2.0.1] [bug] [Makefile.PL] again,now with patch
Background my apche is not installed exactly as standard.
because of that my moduls should be /usr/lib/apache which apxs nows.
mod_perl.so gets installed in the right place but the text that tells where it is is
wrong
perl Makefile.PL MP_APXS=/usr/sbin/apxs ends with:
<snip>
[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning] baf LoadModule perl_module modules/mod_perl.so
but:
root@xxxx ~/mod_perl-2.0.1# apxs -q LIBEXECDIR
/usr/lib/apache
which is where it gets installed.
suggested patch: (no guarantees at all)
root@xxxxx ~/mod_perl-2.0.1# diff -u Makefile.PL.org Makefile.PL
--- Makefile.PL.org 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";
}
-
$build->save;
}
--
cheers
Bengt-Arne Fjellner
LuleƄ university of technology
SkellefteƄ Sweden