欢迎光临
我们一直在努力

Ubuntu下安装Nginx依赖记录

概述

由于需要基于arm架构部署新web服务,使用Ubuntu系统安装Nginx,但与Centos7依赖名称有异。

依赖项

总结
apt-get install libpcre3-dev zlib1g-dev libgd-dev
pcre

报错内容

./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.

解决办法

apt-get install libpcre3-dev
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= option.

解决办法

apt-get install zlib1g-dev
GD
./configure: error: the HTTP image filter module requires the GD library.
You can either do not enable the module or install the libraries.
apt-get install libgd-dev

文章来源于互联网:Ubuntu下安装Nginx依赖记录

赞(0)
未经允许不得转载:莱卡云 » Ubuntu下安装Nginx依赖记录