Apache installation configuration can't find PCRE? ( pcre-config for libpcre not found )

PCRE devel package is not installed on your system. First install pcre-devel

sudo yum install pcre-devel -y

and then run

sudo ./configure --with-included-apr

it will automatically take pcre by default.


This solved it.

First I installed pcre in /usr/local/pcre, using

./configure --prefix=/usr/local/pcre
make
sudo make install

Then installed apache with

./configure --with-included-apr --with-pcre=/usr/local/pcre
make
sudo make install

I solved it by giving the path in the Apache configuration

./configure \
--with-included-apr \
--with-pcre=/usr/local/pcre/bin/pcre-config 

as the compiler looks for the configuration settings in the pre-config file, hence we have to give the exact location of the pre-config file.