On Feb 7, 2006, at 08:38 , Tom Schindl wrote:
Your line works like a charme ;-)
-----------------8<-----------------
[EMAIL PROTECTED] ~]$ /opt/myperl/bin/perl -MApache2::BuildConfig -le 'print
Apache2::BuildConfig->new->MP_APXS, $/'
/opt/myapache/bin/apxs
[EMAIL PROTECTED] ~]$
-----------------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.
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.
Yeah, I do that anyway. I just was putting together a list of common
directories to search before prompting. Here's what I have (searching
for 1.3 or 2.x):
/usr/local/apache/bin
/usr/local/apache2/bin
/opt/apache/bin
/opt/apache2/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/usr/sbin
/bin
/etc/httpd/bin
/etc/apache/bin
/etc/apache2/bin
/home/httpd/bin
/home/apache2/bin
/home/apache/bin
/sw/bin
/sw/sbin
/web/httpd
Best,
David