Compilation parameters:--[[email protected]]#./configure--user=nginx--group=nginx--prefix=/usr/local/nginx--with-http_stub_status _module--with-http_ssl_mod
Compile parameters:
--[[email protected] 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/
After the Nginx compiler passed, the Make times error is as follows:
[[email protected] nginx-1.4.6]# make Make-f objs/makefile make[1]: Entering directory '/usr/src/nginx-1.4.6 ' Cd/usr/loc al/pcre/\ && If [-f Makefile]; then make Distclean; fi \ && cc= "CC" cflags= "-o2-fomit-frame-pointer-pipe" \./configure--disable-shared/bin/sh:line 2:./configu Re:no such file or directory make[1]: * * [/usr/local/pcre//makefile] Error 127 make[1]: Leaving directory '/usr/src/ngin x-1.4.6 ' Make: * * * [build] Error 2 [[email protected] nginx-1.4.6]#
Primary error: MAKE[1]: * * * [/usr/local/pcre//makefile] Error 127
Viewed the help below
[Email protected] 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 [[email protected] n ginx-1.4.6]#
Discover that--with-pcre=dir is the source directory for setting up Pcre, not the Pcre installation directory
Re-modifying Nginx compilation parameters
[Email protected] 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/
Do && make install should not be a problem after compiling
"Go" fix error when compiling and installing Nginx