`
cuisuqiang
  • 浏览: 3972460 次
  • 性别: Icon_minigender_1
  • 来自: 北京
博客专栏
3feb66c0-2fb6-35ff-968a-5f5ec10ada43
Java研发技术指南
浏览量:3680183
社区版块
存档分类
最新评论

Apache安装问题:configure: error: APR not found . Please read the documentation

阅读更多

Linux上安装Apache时,编译出现错误: 

 

checking for APR... no
configure: error: APR not found .  Please read the documentation

 

安装APR,下载所需软件包,如果此时计算机可以上网,执行命令下载文件:

wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip

 

apr not found问题

tar -zxf apr-1.4.5.tar.gz
cd  apr-1.4.5
./configure --prefix=/usr/local/apr
make && make install

 

APR-util not found问题

tar -zxf apr-util-1.3.12.tar.gz
cd apr-util-1.3.12
./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
make && make install

 

pcre问题

unzip -o pcre-8.10.zip
cd pcre-8.10
./configure --prefix=/usr/local/pcre
make && make install

 

最后编译Apache时加上:

--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

 
例如:

./configure --prefix=/usr/local/apache2 --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

 

请您到ITEYE网站看 java小强 原创,谢谢!
http://cuisuqiang.iteye.com/

自建博客地址:http://www.javacui.com/ ,内容与ITEYE同步!

2
0
分享到:
评论
1 楼 cuisuqiang 2014-05-23  
我已经把附件上传,直接下载使用

相关推荐

    apache2.4完整安装

    ### Apache2.4完整安装及解决configure: error: APR-util not found问题 #### 一、背景介绍 Apache HTTP Server(通常简称为Apache)是目前最流行的Web服务器软件之一,广泛应用于互联网上的各种网站和应用程序。...

    Apache遇到的问题 APR not found问题的解决方法

    Apache遇到的"APR not found"问题通常是由于Apache编译时找不到对应的Apache Portable Runtime (APR)库导致的。APR是Apache HTTP服务器项目的基础组件,它提供了许多操作系统级别的接口,如文件I/O、网络通信、内存...

    Linux环境apache安装

    Please read the documentation.** - 解决方法:确保已经按照正确顺序安装了APR,并且指定了正确的安装路径。 - **configure:error:APR-util not found. Please read the documentation.** - 解决方法:同样,...

    linux下安装apache

    Please read the documentation. 解决方案: 1. 下载 PCRE 的源文件: http://ftp.exim.llorien.org/pcre/ 2. 解压缩 PCRE 的源文件: tar -zxf pcre-8.35.tar.gz 3. 配置和安装 PCRE: ./configure --...

    Apache安装与配置[归类].pdf

    Please read the documentation.`。这是因为Apache需要关联软件APR的支持。 安装APR 1. 下载apr-1.4.6.tar.gz,解压安装。使用命令`tar – zvxf apr-1.4.6.tar.gz`,然后进入apr-1.4.6目录。 2. 执行命令`./...

    Ubuntu 12.04 x64 编译安装lamp的步骤

    编译安装apache 2.4.2 代码如下: sudo echo ‘start’ echo 常见错误: echo configure: error: APR not found. Please read the documentation. echo 解决办法: wget ...

Global site tag (gtag.js) - Google Analytics