nginx ./configure error ubuntu 12.04

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


apt-get build-dep nginx

just resolved my problem....


Here are the steps that you need to follow for Nginx installation on Ubuntu 18.04:

1: Install build essential sudo apt-get install build-essential

You may receive "udo apt-get install libpcre3 libpcre3-dev"

2: sudo apt-get install libpcre3 libpcre3-dev

3: sudo apt-get install zlib1g zlib1g-dev

4: sudo apt-get install -y libssl-dev