NginX 를 컴파일하다가 만났습니다.

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

 

즉, pcre 를 먼저 설치해야 합니다.

 

다운로드 경로는 다음과 같습니다.

http://sourceforge.net/projects/pcre/files/pcre/

 

pcre-8.34.tar.gz (8.34 버전) 를 다운로드 받았고 OS X 에서 컴파일을 시도합니다.

컴파일 옵션을 잘 몰라서 그냥 --prefix 만으로 했는데 잘 끝났네요.