nginx ./configure报错

./configure--perfix=/opt/nginx时报的错误checkingforCcompiler...foundcheckingforgccbuiltina... ./configure --perfix=/opt/nginx时报的错误
checking for C compiler ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
Gcc版本
gcc-objc++-4.1.2-52.el5
gcc-gnat-4.1.2-52.el5
compat-libgcc-296-2.96-138
libgcc-4.1.2-52.el5
gcc44-4.4.6-3.el5.1
gcc-c++-4.1.2-52.el5
gcc-gfortran-4.1.2-52.el5
libgcc-4.1.2-52.el5
gcc-objc-4.1.2-52.el5
gcc-java-4.1.2-52.el5
gcc-4.1.2-52.el5
gcc44-c++-4.4.6-3.el5.1
gcc44-gfortran-4.4.6-3.el5.1
zlib版本

zlib-devel-1.2.3-4.el5
zlib-1.2.3-4.el5
zlib-1.2.3-4.el5
zlib-devel-1.2.3-4.el5
openssl版本

openssl-0.9.8e-22.el5
openssl-devel-0.9.8e-22.el5
openssl-devel-0.9.8e-22.el5
openssl-0.9.8e-22.el5
pcre版本

pcmciautils-014-5
pcre-6.6-6.el5_6.1
libpcap-0.9.4-15.el5
pciutils-3.1.7-5.el5
pcsc-lite-1.4.4-4.el5_5
展开
 我来答
毛线圈
2016-05-12 · TA获得超过636个赞
知道小有建树答主
回答量:855
采纳率:33%
帮助的人:553万
展开全部
yum install -y pcre-devel
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式