环境:
Centos:CentOS release 6.7 (Final)
获取模块源代码:
wget http://mirrors.hust.edu.cn/apache//apr/apr-1.5.2.tar.gz
wget http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.4.tar.gz
wget http://mirrors.cnnic.cn/apache/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz
编译安装:
mkdir ~/libs
tar zxvf apr-1.5.2.tar.gz
cd apr-1.5.2
./configure --prefix=${HOME}/libs && make && make install
cd ..
tar zxvf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --prefix=${HOME}/libs--with-apr=${HOME}/libs && make && make install
cd ..
tar xzvf apache-log4cxx-0.10.0.tar.gz
cd apache-log4cxx-0.10.0
./configure --with-charset