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=<path> 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=<path> 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
评论(0)