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