An error occurred while compiling Apache today:
#./Configure -- prefix ...... When checking the editing environment:
Checking for APR... no
Configure: Error: Apr not found. Please read the documentation
Solution:
1. download the required software package:
- 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 http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
2. Compile and install:
- Yum remove Apr-util-devel APR Apr-util-mysql Apr-docs Apr-devel Apr-util-docs
The procedure is as follows:
A: Solve the Problem of APR not found >>>>>
- [Root @ XT test] # tar-zxf apr-1.4.5.tar.gz
- [Root @ XT test] # apr-1.4.5 CD
- [Root @ XT apr-1.4.5] #./configure -- prefix =/usr/local/APR
- [Root @ XT apr-1.4.5] # Make & make install
-
B: Solve the Problem of APR-util not found >>>>
- [Root @ XT test] # tar-zxf apr-util-1.3.12.tar.gz
- [Root @ XT test] # apr-util-1.3.12 CD
- [Root @ XT apr-util-1.3.12] #./configure -- prefix =/usr/local/APR-util-with-Apr =/usr/local/APR/bin/apr-1-config
- [Root @ XT apr-util-1.3.12] # Make & make install
C: Solve the PCRE problem >>>>>>>>>
- [Root @ XT test] # unzip-O pcre-8.10.zip
- [Root @ XT test] # pcre-8.10 CD
- [Root @ XT pcre-8.10] #./configure -- prefix =/usr/local/PCRE
- [Root @ XT pcre-8.10] # Make & make install
4. Add:
-- With-Apr =/usr/local/APR \
-- With-Apr-util =/usr/local/APR-util /\
-- With-PCRE =/usr/local/PCRE
Compilation completed ~