In message <20170928133913.ga27...@www.mrbrklyn.com>, Ruben Safir writes: >I am trying to compile Apache 2.4.27 and mod_perl 2.0.10 and I used the >command > >perl Makefile.PL MP_USE_STATIC=11 >MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx" >MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules" > >and it bombs with: >perl Makefile.PL MP_USE_STATIC=11 >MP_AP_PREFIX="/home/ruben/src/httpd-2.4.xx" >MP_AP_CONFIGURE="--with-mpm=prefork --enable-load-all-modules" >Reading Makefile.PL args from @ARGV > MP_USE_STATIC = 11 > [ error] MP_AP_PREFIX must point to a valid directory. > >I googled this and pulled two libraries but not sure how to proceed. > >total 12540 >drwxr-xr-x 7 ruben ruben 4096 Sep 28 06:03 . >drwx------ 8 ruben ruben 4096 Sep 28 06:18 .. >drwxr-xr-x 27 ruben ruben 4096 Sep 28 06:04 apr-1.6.2 >-rw-r--r-- 1 ruben ruben 1071074 Jun 20 06:29 apr-1.6.2.tar.gz >drwxr-xr-x 20 ruben ruben 4096 May 3 19:20 apr-util-1.6.0 >-rw-r--r-- 1 ruben ruben 565507 Jun 20 06:29 apr-util-1.6.0.tar.gz >drwxr-xr-x 9 ruben ruben 4096 Apr 16 2014 Embperl-2.5.0 >-rw-r--r-- 1 ruben ruben 787397 Oct 9 2015 Embperl-2.5.0.tar.gz >drwxr-xr-x 11 ruben ruben 4096 Sep 28 06:17 httpd-2.4.27 >-rw-r--r-- 1 ruben ruben 6527394 Jul 9 14:10 httpd-2.4.27.tar.bz2 >drwxr-xr-x 15 ruben ruben 4096 Sep 28 05:46 mod_perl-2.0.10 >-rw-r--r-- 1 ruben ruben 3846211 Oct 27 2016 mod_perl-2.0.10.tar.gz > >I did a ./configure under the apr-1.6.2 source and is seemed to work but >a libtool error happened, and tha is just too many errors without me >asking now from someone I trust as how to proceed.
I'm not familiar with static linking mod_perl, but if you build Apache separately with the intention of running mod_perl as a DSO, you should configure Apache --with-included-apr and place apr and apr-util in its srclib directory. Then you would build mod_perl, $ env MAKE=gmake /path/to/bin/perl Makefile.PL \ MP_APXS=/path/to/bin/apxs MAKE=gmake MP_NO_THREADS=1 Happy hacking, John groenv...@acm.org