apr 和apr-util的下载地址
http://apr.apache.org/download.cgi
安装apr
# tar zxvf apr-1.4.6.tar.gz
# cd apr-1.4.6
# ./configure --prefix=/usr/local/apr
# make
# make install
# make clean
安装apr-util
# tar zxvf apr-util-1.5.1.tar.gz
# cd apr-util-1.5.1
# ./configure --prefix=/usr/local/apr-util
--with-apr=/usr/local/apr
# make
# make install
# make clean
安装pcre
下载:pcre-8.32.tar.gz
http://sourceforge.net/projects/pcre/files/pcre/8.32/
# tar zxvf pcre-8.32.tar.gz
# cd pcre-8.32
# ./configure --prefix=/usr/local/pcre
# make
# meke install
安装apache2.4.4
下载 http://labs.mop.com/apache-mirror/httpd/httpd-2.4.4.tar.gz
# tar zxvf httpd-2.4.4.tar.gz
将apr-1.4.6 拷贝到httpd-2.4.3/srclib/apr文件夹
将apr-util-1.4.1 拷贝到httpd-2.4.3/srclib/apr-util文件夹
# cp -rf apr-1.4.6 httpd-2.4.4/srclib/apr
# cp -rf apr-util-1.5.1 httpd-2.4.4/srclib/apr-util
# ./configure --prefix=/usr/local/apache2.4.4 --enable-so --enable-mods-shared=most --with-mpm=worker --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --with-included-apr
#./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-so --enable-rewrite --enable-modules=all --enable-mods-shared=all
#./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-so --enable-rewrite --enable-modules=all --enable-mods-shared=all
# make
#make install
#make clean
#make install
#make clean