"Go" fix error when compiling and installing Nginx

Source: Internet
Author: User

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

Related Article

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.