installing nginx on OS X

Igor Sysoev is at rambler-co.ru
Sun Oct 7 15:30:37 MSD 2007


On Sat, Oct 06, 2007 at 02:04:40PM -0700, Peter Michaux wrote:

> I've tried installing a couple versions of nginx on OS X. When I run
> the "make" command I see the following error. Any ideas how to fix
> this?
> 
> Thank you,
> Peter
> 
> 
>   src/http/modules/ngx_http_map_module.c
> 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_referer_module.o \
>                 src/http/modules/ngx_http_referer_module.c
> 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:415: error:
> 'ngx_regex_capture_count_n' undeclared (first use in this function)
> src/http/modules/ngx_http_rewrite_module.c:415: error: parse error
> 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 `/Users/peter/Desktop/nginx-0.6.0'
> make: *** [build] Error 2

nginx configure did not find PCRE library:

./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.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list