The installation uses the nginx-0.8.54 stable edition. At the beginning, the compilation parameters are specified as follows:
. /Configure-user = www-group = www-Prefix =/usr/local/nginx-with-http_ssl_module-with-http_sub_module-with-http_gzip_static_module-with-http_stub_status_module-add-module =/usr/local/src/nginx_upstream_jvm_route /-with-http_realip_module-with-PCRE =/usr/local/PCRE
When the make stage is reached, an error is reported:
[Root @ test01 nginx-0.8.54] # Make
Make-F objs/makefile
Make [1]: Entering directory '/usr/local/src/nginx-0.8.54 ′
CD/usr/local/PCRE/
& If [-F makefile]; then make distclean; FI/
& CC = "GCC" 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/local/src/nginx-0.8.54 ′
Make: *** [Build] Error 2
A few times of subconscious Google, and few people encounter it, it is also a good solution. I am not afraid. I have also played embedded tricks before, and I have written makefile myself. How can I find makefile in the PCRE directory to compile nginx? Then I will specify the PCRE source code directory for it.
Root @ test01 nginx-0.8.54] #. /configure-user = www-group = www-Prefix =/usr/local/nginx-with-http_ssl_module-with-http_sub_module-with-http_gzip_static_module-with-http_stub_status_module-add-module =/usr/local/src/nginx_upstream_jvm_route /-with-http_realip_module-with-PCRE =/usr/local/src/pcre-8.10
Re-compile, make & make install