PCRE错误在RHEL 5.11上编译Apache httpd 2.4.18

时间:2016-02-26 14:49:42

标签: apache pcre

初始尝试配置时出现此错误:

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

我安装了pcre-devel:

yum install pcre-devel.x86_64

现在配置成功。但是,make给出了这个错误:

util_pcre.c: In function 'ap_regcomp':
util_pcre.c:128: error: 'PCRE_DUPNAMES' undeclared (first use in this function)
util_pcre.c:128: error: (Each undeclared identifier is reported only once
util_pcre.c:128: error: for each function it appears in.)
make[2]: *** [util_pcre.lo] Error 1
make[2]: Leaving directory `/home/downloads/httpd-2.4.18/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/downloads/httpd-2.4.18/server'
make: *** [all-recursive] Error 1

寻求帮助解决make pcre问题。

1 个答案:

答案 0 :(得分:0)

能够使用相同的configure成功安装Apache httpd-2.4.17并使用httpd-2.4.18进行制作。