如何编译安装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
如何部署Oracle Linux 9.x LAMP环境?

1 理论部分 – LAMP是Linux+Apache+MySQL+PHP的简写 &#82 …

Apache
如何修改Apache UMask?

1 前言 一个问题,一篇文章,一出故事。 笔者遇到运行于Apache账号的PHP创建文件时组没有写权 …

Apache
如何传递真实IP到Apache后端?

1 前言 一个问题,一篇文章,一出故事。 本章需要实现前端反向代理(Nginx)的服务器需要传递客户 …