Under the Centos-7.x86_64.
The following message may be prompted during compilation:
checking for APR... noconfigure: error: APR not found. Please read the documentation.checking for APR-util... noconfigure: error: APR-util not found. Please read the documentation.
After installing yum, the system will still prompt that the system cannot be found.
You have to manually download and install Apr.
# wget -c http://www.eu.apache.org/dist//apr/apr-1.5.1.tar.gz
# tar -zxvf apr-1.5.1.tar.gz
# cd apr-1.5.1
# ./configure --prefix=/usr/lib/apr
# make && make install
Apr-util:
# wget -c http://www.eu.apache.org/dist//apr/apr-util-1.5.4.tar.gz
# cd apr-util-1.5.4
# ./configure --prefix=/usr/lib/apr-util --with-apr=/usr/lib/apr
# make && make install
Note: If the installation of APR-util is incorrect, the following error may occur if you delete the installation directory and reinstall it. You only need to make clean in the decompressed directory before continuing.
Libtool: Install: Error: cannot install 'libaprutil-1. la' to a directory not ending in/usr /***
Then:
# ./configure --prefix=/usr/local/apache --enable-mods-shared=most --enable-mods-shared=all --enable-modules=so --enable-proxy=shared --enable-proxy_connect=shared --enable-headers=shared --with-apr=/usr/lib/apr --with-apr-util=/usr/lib/apr-util
My PCRE is shared.
Centos compilation and configuration Apache