源码安装apache2.4遇到的问题

3 篇文章 0 订阅
2 篇文章 0 订阅
今天编绎安装appce2.4时,在configure时,指定了--with-included-apr选项,出现./srclib/apr 错误,查找官方文档,apr与APR-Util在2.4版本中不在集成到里面,需要另行下载。
原文件如下:
APR and APR-Util
Make sure you have APR and APR-Util already installed on your system. If you don't, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into ./srclib/apr and ./srclib/apr-util (be sure the directory names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/) and use ./configure's --with-included-apr option. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util.

解决办法如下:
1、下载apr与apr-uitl
wget http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.3.tar.gz
wget http://mirrors.cnnic.cn/apache//apr/apr-1.5.1.tar.gz
2、解压
tar -xzvf ./apr-1.5.1.tar.gz
tar -xzvf ./apr-util-1.5.3.tar.gz
3、复制到./srclib/的apr和apr-util下(即去掉两个版本号)
cp -rf ./apr-1.4.6  ./httpd-2.4.6/srclib/apr
cp -rf ./apr-util-1.4.6  ./httpd-2.4.6/srclib/apr-util

4、重新编绎即可通过。

./configure --prefix=/usr/local/apache2 --with-included-apr --enable-so --enable-deflate=shared --enable-expire    s=shared --enable-rewrite=shared --with-pcre

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值