首页 > 服务器    日期:2021-08-28 / 来自互联网 / 浏览

概述

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

觉得上面的内容有用吗?快来点个赞吧!

点赞() 我要打赏

温馨提示 : 本站内容来自会员投稿以及互联网,所有源码及教程均为作者总结编辑,请大家在使用过程中提前做好备份,以免发生无法预知的错误,源码类教程请勿直接用于生产环境!

 可能感兴趣的文章