[root@vw010001135067 nginx-1.10.2]# ./configure checking for OS+ Linux 2.6.32-431.el6.x86_64 x86_64 checking for C compiler ... found ...... checking for PCRE library... not found checking for PCRE libraryin /usr/local/ ... not found checking for PCRE libraryin /usr/include/pcre/ ... not found checking for PCRE libraryin /usr/pkg/ ... not found checking for PCRE libraryin /opt/local/ ... not found./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre= option.
error: the HTTP gzip module requires the zlib library. You can either disable the module byusing--without-http_gzip_module option, or install the zlib library intothesystem, or build the zlib library statically fromthe source with nginx byusing--with-zlib= option.
1
2
3
4
1
2
3
4
如果有这个错误 那么执行
yum install zlib-devel
1
1
1.3.4 执行./configure后没有报错
[root@vw010001135067 nginx-1.10.2]# ./configure checking for OS+ Linux 2.6.32-431.el6.x86_64 x86_64 checking for C compiler ... found+ using GNU C compiler+ gcc version: 4.4.720120313 (Red Hat 4.4.7-17) (GCC) ....... Configuration summary+ using system PCRE library+ OpenSSL libraryisnot used+ md5: using system crypto library+ sha1: using system crypto library+ using system zlib librarynginx path prefix: "/usr/local/nginx"nginx binary file: "/usr/local/nginx/sbin/nginx"nginx modules path: "/usr/local/nginx/modules"nginx configuration prefix: "/usr/local/nginx/conf"nginx configurationfile: "/usr/local/nginx/conf/nginx.conf"nginx pid file: "/usr/local/nginx/logs/nginx.pid"nginx error log file: "/usr/local/nginx/logs/error.log"nginx http access log file: "/usr/local/nginx/logs/access.log"nginx http client request body temporary files: "client_body_temp"nginx http proxy temporary files: "proxy_temp"nginx http fastcgi temporary files: "fastcgi_temp"nginx http uwsgi temporary files: "uwsgi_temp"nginx http scgi temporary files: "scgi_temp"