(20200305已解决)Nginx配置错误./configure: error: the HTTP gzip module requires the zlib library

  • 问题描述

    如图所示,configure配置prefix出现错误:

    (20200305已解决)Nginx配置错误./configure: error: the HTTP gzip module requires the zlib library

  • 解决方案

    yum install -y zlib-devel

    再配置./configure --prefix=/home/nginx

    成功:

    (20200305已解决)Nginx配置错误./configure: error: the HTTP gzip module requires the zlib library