安装nginx遇到错误

/home/dys/nginx-0.5.34# make install
make -f objs/Makefile install
make[1]: Entering directory `/tmp/nginx-0.5.34'
gcc -c -O -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter
-Wno-unused-function -Wunused-variable -Wunused-value -Werror -g  -I
src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I
src/http -I src/http/modules /
                -o objs/src/http/modules/ngx_http_rewrite_module.o /
                src/http/modules/ngx_http_rewrite_module.c
src/http/modules/ngx_http_rewrite_module.c: In function
'ngx_http_rewrite':
src/http/modules/ngx_http_rewrite_module.c:313: error:
'ngx_http_script_regex_code_t' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:313: error: (Each
undeclared identifier is reported only once
src/http/modules/ngx_http_rewrite_module.c:313: error: for each
function it appears in.)
src/http/modules/ngx_http_rewrite_module.c:313: error: 'regex'
undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:314: error:
'ngx_http_script_regex_end_code_t' undeclared (first use in this
function)
src/http/modules/ngx_http_rewrite_module.c:314: error: 'regex_end'
undeclared (first use in this function)
cc1: warnings being treated as errors
src/http/modules/ngx_http_rewrite_module.c:332: warning: implicit
declaration of function 'ngx_regex_compile'
src/http/modules/ngx_http_rewrite_module.c:339: error:
'ngx_http_script_regex_start_code' undeclared (first use in this
function)
src/http/modules/ngx_http_rewrite_module.c:410: warning: implicit
declaration of function 'ngx_regex_capture_count'
src/http/modules/ngx_http_rewrite_module.c:414: error:
'ngx_regex_capture_count_n' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:414: error: expected ')'
before string constant
src/http/modules/ngx_http_rewrite_module.c:446: error:
'ngx_http_script_regex_end_code' undeclared (first use in this
function)
src/http/modules/ngx_http_rewrite_module.c: In function
'ngx_http_rewrite_if_condition':
src/http/modules/ngx_http_rewrite_module.c:656: error:
'ngx_http_script_regex_code_t' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:656: error: 'regex'
undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:765: error:
'NGX_REGEX_CASELESS' undeclared (first use in this function)
src/http/modules/ngx_http_rewrite_module.c:773: error:
'ngx_http_script_regex_start_code' undeclared (first use in this
function)
make[1]: *** [objs/src/http/modules/ngx_http_rewrite_module.o] Error 1
make[1]: Leaving directory `/home/dys/nginx-0.5.34'
make: *** [install] Error 2

解决办法:

 

rpm -ivh pcre-devel-6.6-2.el5_1.7.i386.rpm

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值