Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
nginx./configure error ubuntu 12.04_Nginx - Fatal编程技术网

nginx./configure error ubuntu 12.04

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

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