Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing mod_perl-2.0.7 on Apache httpd-2.4.2

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.

like image 872
kand Avatar asked Jun 20 '12 20:06

kand


2 Answers

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.

like image 154
daxim Avatar answered Nov 15 '22 09:11

daxim


You need to include the path to binary executable file apr-1-config. Run the below command

perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs MP_APR_CONFIG=/usr/local/apr/bin/apr-1-config

It worked for me..Hope the same for you too.

like image 39
Subrata Pramanik Avatar answered Nov 15 '22 08:11

Subrata Pramanik