编译apache报APR not found
2014-05-09 23:29
337 查看
系统环境:
[vagrant@rs-2 download]$ cat /etc/redhat-release
CentOS release 5.6 (Final)
[vagrant@rs-2 download]$ uname -a
Linux rs-2 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
编译apache 2.4.9
[vagrant@rs-1 httpd-2.4.9]$ ./configure --prefix=/usr/local/apache
编译apache, 遇到以下错误
configure: error: APR not found. Please read the documentation.
configure: error: APR-util not found. Please read the documentation.
去http://archive.apache.org/dist/apr/去下载相关包
[vagrant@rs-1 download]$ wget http://archive.apache.org/dist/apr/apr-1.5.1.tar.gz
[vagrant@rs-1 download]$ wget http://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz
安装 apr 包
[vagrant@rs-1 apr-1.5.1]$ ./configure --prefix=/usr/local/apr
[vagrant@rs-1 apr-1.5.1]$ make
[vagrant@rs-1 apr-1.5.1]$ sudo make install
安装apr-util
[vagrant@rs-1 apr-util-1.5.3]$ ./configure
--prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
[vagrant@rs-1 apr-util-1.5.3]$ make
[vagrant@rs-1 apr-util-1.5.3]$ sudo make install
最后,编译apache时候加上
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util/
[vagrant@rs-1 httpd-2.4.9]$ ./configure
--prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/
[vagrant@rs-2 download]$ cat /etc/redhat-release
CentOS release 5.6 (Final)
[vagrant@rs-2 download]$ uname -a
Linux rs-2 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
编译apache 2.4.9
[vagrant@rs-1 httpd-2.4.9]$ ./configure --prefix=/usr/local/apache
编译apache, 遇到以下错误
configure: error: APR not found. Please read the documentation.
configure: error: APR-util not found. Please read the documentation.
去http://archive.apache.org/dist/apr/去下载相关包
[vagrant@rs-1 download]$ wget http://archive.apache.org/dist/apr/apr-1.5.1.tar.gz
[vagrant@rs-1 download]$ wget http://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz
安装 apr 包
[vagrant@rs-1 apr-1.5.1]$ ./configure --prefix=/usr/local/apr
[vagrant@rs-1 apr-1.5.1]$ make
[vagrant@rs-1 apr-1.5.1]$ sudo make install
安装apr-util
[vagrant@rs-1 apr-util-1.5.3]$ ./configure
--prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config
[vagrant@rs-1 apr-util-1.5.3]$ make
[vagrant@rs-1 apr-util-1.5.3]$ sudo make install
最后,编译apache时候加上
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util/
[vagrant@rs-1 httpd-2.4.9]$ ./configure
--prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/
相关文章推荐
- Apache转发配置
- apache编译
- Tomacat7启动报错-org.apache.catalina.deploy.WebXml addFilter
- 解决apache启动错误:Could not reliably determine the server's fully qualified domain name
- visualSVN server绿化策略 摆脱两个apache的尴尬
- org.apache.hadoop.hbase.coprocessor.AggregateImplementation 来统计表的行数
- Apache自带压力测试工具AB的使用方法
- apache日志分析简介。
- 邁向 RHCE 之路 (Day26) - Apache 網頁伺服器
- apache 2.2设置单IP多端口的虚拟主机
- CentOS 5.5 下修改Apache默认端口80
- 【Apache CXF】CXF对JAX-WS的支持
- Apache Axis相关开发知识点
- apache cgi
- Apache的prefork模式和worker模式
- Apache 目录权限的设置
- Apache优化:修改最大并发连接数
- 电影推荐-基于 Apache Mahout 构建社会化推荐引擎
- org.apache.commons.lang.StringUtils
- org.apache.commons.collections.CollectionUtils