Re: "Can't find apr include/ directory"
Once you've compiled mod_perl2 statically with a series of commands
that look something like this:
tar -zxf mod_perl-2.0-current.tar.gz; tar -zxvf httpd-2.2.3.tar.gz;
perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=../httpd-2.2.3/
--with-devrandom=/dev/urandom --enable-rewrite --enable-deflate
--enable-proxy --enable-expires --enable-proxy-http";
DONT cd back into the apache source directory and do a 'make install'.
If you do, you're going to get an error when you try to compile
libapreq2 later on complaining about not being able to find apxs.
Hope it doesn't bug the guru's I'm braindumping random snippets like
this. I spent a bit of time on Google and the list archives with these
issues to no avail, so hopefully this helps someone else.
Also... Is there a mod_perl wiki for brain dumps like these?
On 10/19/06, Mark Maunder <firstname.lastname@example.org> wrote:[color=blue]
> Hi all,
> This was going to be a post asking for help but I just solved it. If
> you're building mod_perl2 statically and get:
> "Can't find apr include/ directory"
> and it's driving you nuts because you're untarring a clean mod_perl, a
> clean httpd, and you're making no reference to any existing
> directories on the machine so it couldn't possibly be getting confused
> by stuff that's already installed.... well think again. I had an
> existing installation under /usr/local/apache2/ and as soon as I
> trashed it mod_perl2 compiled just fine.
> CentOS 4.2
Mark Maunder <email@example.com>