Two errors during Nginx Compilation

Source: Internet
Author: User

An error is reported when nginx is compiled for an internal testing machine./configure.
./Configure \
-- Prefix =/usr/local/nginx \ specifies the installation location
-- With-http_flv_module \ supports drag playback of FLV (flash) files
-- With-http_gzip_static_module \ add module ngx_http_gzip_static_module, enable nginxserver to allow sending pre-compressed files with the file extension as a replacement for sending normal files
-- With-http_stub_status_module \ gets some nginx running status
-- With-cc = gcc \ specifies the C compiler path
-- With-cc-opt = '-O3' to set additional C compiler options

Two errors occur successively, as shown below:

1. error: the HTTP rewrite module requires the PCRE library.
Solution: yum-y install pcre-devel

2. error: the HTTP gzip module requires the zlib library.
Solution: yum install-y zlib-devel

Compiled successfully!

Recommended reading:

 

Configure and optimize reverse proxy and load balancing in Nginx

 

Nginx load balancing: nginx: [emerg] cocould not build the types_hash

 

Nginx Load Balancing module ngx_http_upstream_module details

 

Nginx + Firebug allows the browser to tell you which Server Load balancer distributes requests

 

Ubuntu install Nginx php5-fpm MySQL (LNMP environment setup)

 

Nginx details: click here
Nginx: click here

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.