从源码安装apache ( intall apache2 from source)
来源:互联网 发布:centos 输入法 编辑:程序博客网 时间:2024/06/07 10:15
#./configure --prefix……检查编辑环境时出现:
checking for APR... no
configure: error: APR not found . Please read the documentation.
可以用./configure –help | grep apr 查看帮助。
--with-included-apr Use bundled copies of APR/APR-Util
--with-apr=PATH prefix for installed APR or the full path to apr-config
--with-apr-util=PATH prefix for installed APU or the full path to
安装APR(Apache Portable Runtime )
[root@localhost ~]# cd /tmp/52lamp/ //源码存放位置
[root@localhost 52lamp]# tar -zxvf apr-1.4.2.tar.gz //unzip -o apr-1.4.2.zip
[root@localhost 52lamp]# cd apr-1.4.2
[root@localhost apr-1.4.2]# ./configure
[root@localhost apr-1.4.2]# make
[root@localhost apr-1.4.2]# make install
再次检查编译环境出现
checking for APR-util... no
configure: error: APR-util not found . Please read the documentation.
[root@localhost httpd-2.2.16]# ./configure –help | grep apr-util
--with-apr-util=PATH prefix for installed APU or the full path to
[root@localhost 52lamp]# tar -zxvf apr-util-1.3.9.tar.gz
[root@localhost 52lamp]# cd apr-util-1.3.9
[root@localhost apr-util-1.3.9]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
[root@localhost apr-util-1.3.9]# make
[root@localhost apr-util-1.3.9]# make install
./configure仍提示APR-util not found,增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util后出现
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
[root@localhost httpd-2.2.16]# ./configure –help | grep pcre
--with-pcre=PATH Use external PCRE library
[root@localhost 52lamp]# unzip -o pcre-8.10.zip
[root@localhost 52lamp]# cd pcre-8.10
[root@localhost cd pcre-8.10]# ./configure --prefix=/usr/local/pcre
[root@localhost cd pcre-8.10]# make
[root@localhost cd pcre-8.10]# make install
缺少gcc-c++和libtool,也就是c++编译包
libtool: compile: unrecognized option `-DHAVE_CONFIG_H'
libtool: compile: Try `libtool --help' for more information.
make[1]: *** [pcrecpp.lo] Error 1
make[1]: Leaving directory `/home/guangbo/work/pcre-8.12'
make: *** [all] Error 2
解决方法:需要先安装libtool和gcc-c++
继续安装Apache/httpd,./configure 时加上参数 --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre,这个问题就解决了。
Apache安装过程,Apr、apr-util、pcre下载详见本站其他页面。
- 从源码安装apache ( intall apache2 from source)
- Windows从源码手动安装wekan实践步骤(Install manually from Source):
- Debian:从源码安装Apache
- Ubuntu Apache从源码安装
- 源码安装apache2.4
- 在Docker里从源码安装Apache
- Building Apache2 From Source on Linux (Redhat 8)
- 安装Nginx(From Source Code)
- unbuntu14 安装vim8 from-source
- Apache from source - Broken echo command
- CentOS源码安装Apache2.2.17
- CentOS源码安装 apache2.2.5
- apache2.4.1源码安装过程
- CentOS源码安装 apache2.2.5
- centos 源码安装 apache2.4
- 从源码安装apache2,遇到错误:cannot install `libaprutil-1.la'
- 从源码安装apache2,遇到错误:cannot install `libaprutil-1.la'
- Apache Flink源码解析之stream-source
- UTF8编码和正则表达式
- 30款基本UX工具 - 用户测试与反馈工具
- Apache实现负载均衡
- 固定表格table的某一列
- 使用Iconv将UTF-8转换成ASCII(on Linux)
- 从源码安装apache ( intall apache2 from source)
- iOS开发开源框架和类
- 常见gcc编译警告整理
- B树、B-树、B+树、B*树都是什么(转)
- python代码的书写要求
- Model1 与Model2
- 如何加速响应式网站
- 与孩子一起学编程13章
- 理解CUDA[2]