Nginx compilation error bin/sh: Line 2:./configure: no such file or directory

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.