nginx ./configure error ubuntu 12.04

nginx

Solution

You have to install pcre3:

`apt-get install libpcre3 libpcre3-dev`

The library is required for regular expressions support in the location directive and for the ngx_http_rewrite_module module. http://nginx.org/en/docs/install.html

Problem

after downloading and trying to configure nginx when um executing the command ./configure um getting this error ``` ./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. ``` and I execute the ``` apt-get build-dep nginx ``` command um getting the following error ``` 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. ``` I dont have any idea about the libgd2-noxpm. This is my first time with nginx . how to overcome from this error . Thank you in advance

Original source