nginx ./configure错误Ubuntu的12.04

下载后,尝试configurationnginx时,执行命令./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. 

我执行

 apt-get build-dep nginx 

命令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

在位置指令和ngx_http_rewrite_module模块中,该库是正则expression式支持所必需的。 http://nginx.org/en/docs/install.html

apt-get build-dep nginx

刚刚解决了我的问题….