nginx./configure error ubuntu 12.04
在um执行命令时下载并尝试配置nginx之后。/configure 嗯,得到这个错误nginx./configure error ubuntu 12.04,nginx,Nginx,在um执行命令时下载并尝试配置nginx之后。/configure 嗯,得到这个错误 ./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 t
./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.
命令um获取以下错误
The following packages have unmet dependencies:
libgd2-noxpm-dev : Depends: libgd2-noxpm (= 2.0.36~rc1~dfsg-6ubuntu2) but it is not going to be installed
E: Build-dependencies for nginx could not be satisfied.
我对libgd2-noxpm一无所知。这是我第一次使用nginx。如何克服这个错误。提前感谢您您必须安装pcre3:
apt get install libpcre3 libpcre3 dev
location指令中的正则表达式支持和ngx_http_rewrite_模块都需要该库 apt获取构建dep nginx
刚刚解决了我的问题……以下是在Ubuntu 18.04上安装Nginx需要遵循的步骤: 1:安装构建必需 sudo-apt-get-install-build-essential 您可能会收到“udo apt get install libpcre3 libpcre3 dev” 2:sudo apt get安装libpcre3 libpcre3 dev 3:sudo apt获取安装zlib1g zlib1g dev
4:sudo apt get install-y libssl dev也许只需安装
libpcre3 dev
软件包,然后重试?谢谢你似乎可以工作了。文档中没有提到任何关于第三方依赖关系的内容。这要求我也安装libgd2-noxpm-dev
The following packages have unmet dependencies:
libgd2-noxpm-dev : Depends: libgd2-noxpm (= 2.0.36~rc1~dfsg-6ubuntu2) but it is not going to be installed
E: Build-dependencies for nginx could not be satisfied.