# tar -xvzf apr-1.5.1.tar.gz
# cd apr-1.5.1
# .configure
# make
# make install
安装apr-util:
# tar -xvzf apr-util-1.5.3.tar.gz
# cd apr-util-1.5.3
# .configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
# make
# make install
再次检查编译环境报错:
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
缺少pcre,下载地址:http://sourceforge.net/projects/pcre/ 安装pcre:
# unzip -o pcre-8.35
# cd pcre-8.35
# ./configure --prefix=/usr/local/pcre
# make
# make install