These are the requirements and instructions on how to install Apache on Linux. http://httpd.apache.org/docs/current/install.html

So I've installed everything (c++ compiler, apr and apr-util) to be able to install Apache correctly.

The only thing left is PCRE, I've installed it and it's located in my /usr/local/src/pcre-8.32

As I'm trying to sudo ./configure --with-included-apr I get this error:

checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

What am I doing wrong?

3 Answers 3


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
sudo make install

Then installed apache with

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

I solved it by giving the path in the Apache configuration

./configure \
--with-included-apr \

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .