perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Schindl <tomAtLi...@gmx.at>
Subject Re: Where is Your Apache2 Installed?
Date Tue, 07 Feb 2006 17:08:53 GMT
David Wheeler wrote:
> On Feb 7, 2006, at 08:38 , Tom Schindl wrote:
> 
>> Your line works like a charme ;-)
>>
>> -----------------8<-----------------
>> [tom@vinea ~]$ /opt/myperl/bin/perl -MApache2::BuildConfig -le 'print
>> Apache2::BuildConfig->new->MP_APXS, $/'
>> /opt/myapache/bin/apxs
>>
>> [tom@vinea ~]$
>> -----------------8<-----------------
> 
> 
> Odd that it doesn't work for me. But I don't see it listed in the 
> distribution, either:
> 
>   http://search.cpan.org/dist/mod_perl-2.0.2/
> 
>> In my case the file is located in
>> /opt/myperl/lib/site_perl/5.8.6/i686-linux/
>>
>> In think that mp2bug is also using this Apache2::BuildConfig or rather
>> ModPerl::Config which it self uses Apache2::BuildConfig.
> 
> 
> ModPerl::Config I got.

and is it working and how? The first line reads in my case reads like this:

-----------------8<-----------------
package ModPerl::Config;

use strict;

use Apache2::Build ();
[...]
-----------------8<-----------------

> 
>> The only idea if have is to ask the user for the Apache- Installation if
>> none is found on the system :-) e.g. using a parameter passed to perl
>> Makefile.PL.
> 
> 

It doesn't make sense in the distro because it only holds installation
specific things not known by the distro. That's why it should be created
dynamically when you're running perl Makefile.PL ;-)

-----------------8<-----------------
[tom@vinea mod_perl-2.0.2]$ find . -iname BuildConfig*
[tom@vinea mod_perl-2.0.2]$ /opt/myperl/bin/perl Makefile.PL
MP_APXS=/opt/myapache/bin/apxs
[tom@vinea mod_perl-2.0.2]$ find . -iname BuildConfig*
./lib/Apache2/BuildConfig.pm
-----------------8<-----------------

Tom

Mime
View raw message