1. Download the required packages (this download link is verified by the author to use):
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
wget wget Http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
2. Remove the old installation:
Yum Remove apr-util-devel Apr apr-util-mysql apr-docs apr-devel apr-util Apr-util-docs
3, compile the installation, the specific steps are as follows:
A: Solve Apr not found problem >>>>>>
[Email protected] test]# TAR-ZXF apr-1.4.5.tar.gz
[Email protected] test]# CD apr-1.4.5
[Email protected] apr-1.4.5]#/configure--PREFIX=/USR/LOCAL/APR
[[email protected] apr-1.4.5]# make && make install
B: Solve apr-util not found problem >>>>
[Email protected] test]# TAR-ZXF apr-util-1.3.12.tar.gz
[Email protected] test]# CD apr-util-1.3.12
[Email protected] apr-util-1.3.12]#/configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/bin/ Apr-1-config
[[email protected] apr-util-1.3.12]# make && make install
C: Solve pcre problem >>>>>>>>>
[[email protected] test] #unzip-o pcre-8.10.zip
[[email protected] test] #cd pcre-8.10
[Email protected] pcre-8.10]#./configure--prefix=/usr/local/pcre
[[email protected] pcre-8.10] #make && make install
D: Final installation of APCE
[Email protected] httpd-2.4.18]#./configure--prefix=/usr/local/apache--enable-rewrite--enable-so--with-apr=/usr /LOCAL/APR--with-apr-util=/usr/local/apr-util--with-pcre=/usr/local/pcre
Apr not found,apr-util not found,pcre,