Apache – configure: error: APR-util version 1.2.0 or later is required

apacheaprconfigure

I find the following error when I installed httpd-2.2.21:

  checking for APR-util version 1.2.0 or later... no
  configure: error: APR-util version 1.2.0 or later is required

I've installed apr-1.4.5, apr-util-1.3.12.
then i do configure:

./configure –prefix=/usr/local/apache –with-apr=/usr/local/apr/bin/apr-1-config –with-apr-util=/usr/local/apr-util/bin/apu-1-config –enable-so –enable-dav –enable-maintainer-mode –enable-rewrite

I don't know why.

Best Answer

I don't see this error in old apache httpd version, the new apache package has included apr source code under folder srclib, so if you see this error, just add with ./configure

--with-apr=$APACHE_SOURCE/srclib --with-apr-util=$APACHE_SOURCE/srclib  --with-included-apr
Related Topic