appche 2.4编绎安装arp错误解决办法

回复 收藏
今天编绎安装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、重新编绎即可通过。
2014-07-20 01:32 举报
已邀请:
0

m.chang

赞同来自:

哥们啊,我之前也遇到了这个问题,但是忘记怎么解决的了,多亏我看了下同学们的问题,铭哥已经给了答案了,非常感谢分享,我现在就把它记录在博客里面。
再次感谢!!!
0

栋佐

赞同来自:

我之前安装也碰到过,搞了一下午才找到解决方法。
0

lin19890913

赞同来自:

不错,不过最好不要安装2.4的
0

迷城

赞同来自:

{:4_105:}

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: