概述

由于需要基于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
END

本文标题:Ubuntu下安装Nginx依赖记录

本文作者:宇宙最帅的男人

本文链接:https://lolicp.com/nginx/202121187.html

版权声明:转载或者引用本文内容请注明来源及原作者,本文著作权归作者 (宇宙最帅的男人) 所有。

除非另有说明,本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

最后修改:2021 年 08 月 21 日
如果觉得我的文章对你有用,请随意赞赏