如何编译安装APR?

Apache

1 前言

CentOS 6.x中编译安装apache 2.4.35,发现提示apr需要更新的版本,详细的提示信息如下,

checking for APR... configure: WARNING: APR version 1.4.0 or later is required, found 1.3.9
configure: WARNING: skipped APR at apr-1-config, version not acceptable
no
configure: error: APR not found.  Please read the documentation.

2 最佳实践

2.1 系统环境

OS = CentOS 6.8
IP Address = 10.168.0.x
Host Name = xxx.cmdschool.org

2.2 软件环境

2.2.1 清理旧的rpm包

yum remove apr*

2.2.2 下载安装包

cd ~
wget http://mirror.bit.edu.cn/apache//apr/apr-1.6.5.tar.gz
wget http://mirror.bit.edu.cn/apache//apr/apr-util-1.6.1.tar.gz

2.2.3 解压软件包

cd ~
tar -xf apr-1.6.5.tar.gz
tar -xf apr-util-1.6.1.tar.gz

2.2.4 预编译APR

cd ~/apr-1.6.5
./configure --prefix=/usr \
            --libdir=/usr/lib64

2.2.5 编译并安装APR

make
make install

2.2.6 预编译APR-Util

cd ~/apr-util-1.6.1
./configure --prefix=/usr \
            --with-apr=/usr \
            --libdir=/usr/lib64

2.2.7 编译并安装APR-Util

make
make install

参阅文档:
=================
http://apr.apache.org/download.cgi
http://apr.apache.org/compiling_unix.html

没有评论

发表回复

Apache
如何配置Apache httpd的php fcgi?

1 前言 一个问题,一篇文章,一出故事。 笔者今天尝试Apache httpd使用fcgi的方式与p …

Apache
如何修复unknown type name ‘my_bool错误?

1 前言 一个问题,一篇文章,一出故事。 笔者在比较新的操作系统(Oracle Linux Serv …

Apache
如何修复 ‘RSA_SSLV23_PADDING’ undeclared错误?

1 前言 一个问题,一篇文章,一出故事。 笔者在比较新的操作系统(Oracle Linux Serv …