Ubuntu Nginx ./configure: error: the HTTP gzip module requires the zlib library. You can either...
新手用Ubuntu(乌班图)系统装Nginx可真是不容易啊,第一个PCRE的问题搜一下还挺好解决的,但zlib搜半天不知道在哪里下载:
./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.
安装教程:
1.找一个临时目录,下载命令:wget http://www.zlib.net/zlib-1.2.11.tar.gz(2年没更新了,估计这个是最终版了,[官网][Link 1])
2.解压命令:tar -xzvf zlib-1.2.11.tar.gz
3.进入当前文件夹:cd zlib-1.2.11
4.安装命令:
./configure
make
make install
至此安装完成,再次执行
./configure --prefix=/usr/local/nginx
就行啦
还没有评论,来说两句吧...