Install mod_perl-2.0.7 on Apache httpd-2.4.2

I have from time to time trying to get apache installation with perl. I follow the instructions on the mod_perl site located here: http://perl.apache.org/docs/2.0/user/install/install.html

I get to the part where he 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'm not sure where this apr-config application should be, as it does not look like anywhere else in my apache2 folder.

If this could be a problem, I am using Mac OS X 10.7.3. I know that the Apache server comes with Mac OS X, but I need to do this installation on another computer from scratch, so I have to start this entire installation from the very beginning on my computer.

Thanks for any help you can provide.

+6
source share
3 answers

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

When you fix your initial problems, you end up stuck in 'conn_rec doesn't have a name named' remote_ip . Remove httpd 2.4 and use 2.2 in the meantime.

+7
source

You need to specify the path to the binary exec file apr-1-config. Run the following 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 ... I hope the same for you.

+3
source

On Lion, here my APR directory includes / usr / include / apr -1, but it already came with mod_perl.

 $ find / -name apr* /usr/include/apr-1 ... $ find / -name mod_perl.so /usr/libexec/apache2/mod_perl.so 

If you have .so, you can just add to your configuration file:

 LoadModule perl_module libexec/apache2/mod_perl.so 
+1
source

Source: https://habr.com/ru/post/918599/


All Articles