컴 파일 링 NGINX 설치 시 make 오류 해결

컴 파일 매개 변수: -
[root@localhost nginx-1.4.6]# ./configure --user=nginx --group=nginx --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/pcre/

NGINX 컴 파일 이 통 과 된 후 make 타 임 스 는 다음 과 같이 잘못 되 었 습 니 다.
[root@localhost nginx-1.4.6]# make
make -f objs/Makefile
make[1]: Entering directory `/usr/src/nginx-1.4.6'
cd /usr/local/pcre/ \
        && if [ -f Makefile ]; then make distclean; fi \
        && CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
        ./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/usr/local/pcre//Makefile] Error 127
make[1]: Leaving directory `/usr/src/nginx-1.4.6'
make: *** [build] Error 2
[root@localhost nginx-1.4.6]#

주요 오류: make [1]: * * [/ usr / local / pcre / / Makefile] 오류 127
도움말 을 살 펴 보 았 습 니 다.
[root@localhost nginx-1.4.6]# ./configure --help | grep '\--with-pcre'
  --with-pcre                        force PCRE library usage
  --with-pcre=DIR                    set path to PCRE library sources
  --with-pcre-opt=OPTIONS            set additional build options for PCRE
  --with-pcre-jit                    build PCRE with JIT compilation support
[root@localhost nginx-1.4.6]#

발견 -- with - pcr = DIR 는 pcre 의 설치 디 렉 터 리 가 아 닌 pcre 를 설정 하 는 원본 디 렉 터 리 입 니 다.
Nginx 컴 파일 매개 변 수 를 다시 수정 합 니 다.
[root@localhost nginx-1.4.6]# ./configure --user=nginx --group=nginx --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/src/pcre-8.10/

컴 파일 통과 후 make & make install 을 실행 하 는 데 문제 가 없 을 것 입 니 다.

좋은 웹페이지 즐겨찾기