Installing mod_perl-2.0.7 on Apache httpd-2.4.2

kand picture kand · Jun 20, 2012 · Viewed 14k times · Source

I am having an infuriating time trying to get an install of apache with perl. I am following the instructions on the mod_perl site located here: http://perl.apache.org/docs/2.0/user/install/install.html

I get as far as the part where it asks me to run this command, but I get an error:

$ perl Makefile.PL MP_APXS=/usr/local/httpd/prefork/bin/apxs
Reading Makefile.PL args from @ARGV
   MP_APXS = /usr/local/httpd/prefork/bin/apxs
no conflicting prior mod_perl version found - good.
Configuring Apache/2.4.2 mod_perl/2.0.7 Perl/v5.12.3
[  error] Can't find apr include/ directory,
[  error] use MP_APR_CONFIG=/path/to/apr-config

I ran the commands they suggested for installing apache to install my apache:

  $ ./configure --prefix=$HOME/httpd/prefork --with-mpm=prefork
  $ make && make install

But I am not sure where this apr-config thing is supposed to be as it doesn't appear to be anywhere in my apache2 folder.

If it might be an issue, I am using Mac OS X 10.7.3. I know an apache server comes with Mac OS X, but I need to do this install on a different computer from the ground up, so I have to start this whole install from the ground up on my computer.

Thanks ahead of time for any help you can provide.

Answer

daxim picture daxim · Jun 21, 2012

When mod_perl 2.0.8 comes out, I hope that it gets finally httpd 2.4 support, because the current versions surely don't have.

When you fix your initial problems, you will eventually get stuck at ‘conn_rec’ has no member named ‘remote_ip’. Delete httpd 2.4 and use 2.2 meanwhile.