Kent, Mr. John wrote:
> Greetings,
> 
> Attempting to build mod-perl with Apache-2.0.39
> 
> Following the instructions on:
> 
> http://perl.apache.org/release/docs/2.0/user/install/install.html
> 
> When I get to 
> 
> CREATE THE BUILD ENVIRONMENT
> 
> and run
> % perl Makefile.PL MP_AP_PREFIX=/home/stas/src/httpd-2.0.39
> 
> Get!!! Unable to open /users/webuser/src/httpd-2.0.39/include/apr.h: No such
> file or directory
> !!! Unable to open /users/webuser/src/httpd-2.0.39/include/apr.h: No such
> file or directory
> !!! Unable to open /users/webuser/src/httpd-2.0.39/include/apr.h: No such
> file or directory
> Repeated ...
> /users/webuser/src/httpd-2.0.39/include is there, there just isn't any apr.h
> file.
> 
> There is an ap_release.h file, should I copy that to apr.h?

Because in the source it's in httpd-2.0/srclib/apr/include/apr.h and 
once installed it's in where_installed/include/apr.h

The install is indeed borked with MP_AP_PREFIX. I've never noticed this 
problem since I'm still using MP_APXS, so for now try using MP_APXS 
instead of MP_AP_PREFIX which is the path to the installed apxs, e.g. on 
my machine it's MP_APXS=/home/stas/httpd/prefork/bin/apxs. This other 
option was needed because of win32 and supposed to become the only 
option to simplify things.

I've patched Build.pm to find apr.h and complete the build, but not sure 
if that's the right thing. It's still incomplete since 'make test' won't 
find apxs|httpd.

Index: lib/Apache/Build.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
retrieving revision 1.102
diff -u -r1.102 Build.pm
--- lib/Apache/Build.pm 23 Jun 2002 21:46:09 -0000      1.102
+++ lib/Apache/Build.pm 25 Jun 2002 03:33:43 -0000
@@ -764,7 +764,9 @@

      my $dir = $self->ap_includedir;

-    my $header = "$dir/apr.h";
+    my $header = $self->{MP_AP_PREFIX}
+        ? "$dir/../srclib/apr/include/apr.h"
+        : "$dir/apr.h";
      open my $fh, $header or do {
          error "Unable to open $header: $!";
          return undef;

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to