分类: LINUX
2015-05-02 18:50:56
centos6 yum安装的apr版本已经不适用httpd-2.4版本了。所以,需要源码编译apr以及apr-util
1. 下载源码:
cd
/usr/local/src/
wget
wget
wget
2. 安装apr
tar
zxvf apr-1.5.2.tar.gz2
cd
apr-1.5.2
./configure
--prefix=/usr/local/apr
make
&& make install
3. 安装apr-util
tar
zxvf apr-util-1.5.4.tar.gz
cd
apr-util-1.5.4
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/
make
&& make install
4.把apr和apr-util拷贝到./httpd-2.4.10/srclib/目录下
cp -rf ./apr-1.5.2 ./httpd-2.4.12/srclib/apr
cp -rf ./apr-util-1.5.4 ./httpd-2.4.12/srclib/apr-util
5. 安装httpd-2.4
yum
install -y gcc make cmake pcre-devel
./configure
--prefix=/usr/local/apache2 --with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util/ --with-included-apr
make
&& make install