Apache安装;libpcre 错误 [英] Apache installation; libpcre error

查看:16
本文介绍了Apache安装;libpcre 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Ubuntu 11.10 上安装 Apache 时,出现以下错误:

When installing Apache on Ubuntu 11.10, I get the following error:

配置:错误:未找到 APR.请阅读文档.

configure: error: APR not found. Please read the documentation.

我按照此处的说明进行操作,然后出现以下错误:

I followed the instructions here, then, I get the error below:

配置:错误:未找到 libpcre 的 pcre-config.PCRE 是必需的,可从 http://pcre.org/

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

我做错了什么,我该如何解决?

What am I doing wrong and how can I resolve it?

推荐答案

1.从 PCRE.org

2.用前缀编译并安装:

2. Compile it with a prefix and install it:

./configure --prefix=/usr/local/pcre
make
make install

3.返回 Apache 安装位置并使用 PCRE 编译 Apache:

3. Go back to where your Apache installation is and compile Apache with PCRE:

--with-pcre=/usr/local/pcre

这篇关于Apache安装;libpcre 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆