Apache after the 2.4 release, compile-time:
#./configure--prefix=/usr/local/apache2--with-included-apr--enable-so--enable-deflate=shared--enable-expires= Shared--enable-rewrite=shared--with-pcre
The following error occurred:
Configure:error:Bundled APR requested but not found at./srclib/. Download and unpack the corresponding Apr andapr-util packages to./srclib/.
Online search solution is correct, but the URL is not open, so, go to Apache official website to find:
Official website: www.apache.org---download------Get a quick URL (e.g., http://apache.fayea.com/) and find Apr--- Select the bz2 or GZ version of Apr and apr-util, copy the link, and download it to the/USR/LOCAL/SRC directory below. The following is the download parameters, if there is a URL error, please go to the official website according to the above method to download:
# cd /usr/local/src
# wget http://apache.fayea.com/apr/apr-1.5.2.tar.bz2
# wget http://apache.fayea.com/apr/apr-util-1.5.4.tar.bz2
# tar -jxvf apr-util-1.5.4.tar.bz2
# tar -jxvf apr-1.5.2.tar.bz2
Move the extracted Library folder to the HTTPD subdirectory srclib (remove the version number):
# cp -rf apr-1.5.2 /usr/local/src/httpd-2.4.18/srclib/apr // Remove the version number, the same below
# cp -rf apr-util-1.5.4 /usr/local/src/httpd-2.4.18/srclib/apr-util
complete the above operation, in the execution of the compilation, there will be no error.
Configure:error:Bundled APR requested but not found at./srclib/. Download and unpack the corresponding APR and Apr-util packages to./srclib/.