Missing APR on apache2 ./configure

Posted by arby on Server Fault See other posts from Server Fault or by arby
Published on 2012-03-24T10:11:16Z Indexed on 2012/03/24 11:31 UTC
Read the original article Hit count: 373

Filed under:

I want to build the latest stable version of apache2.

I downloaded the source and put APR & APR-util in the srclib folder, then changed directories to ./srclib/apr and ran:

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

This seemed to install APR ok, but when I run ./configure from the apr-util directory, I receive the error:

configure: error: APR could not be located. Please use the --with-apr option.

Using ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr, the error becomes:

checking for APR... configure: error: the --with-apr parameter is incorrect.
It must specify an install prefix, a build directory, or an apr-config file.

Why can't it find APR?

© Server Fault or respective owner

Related posts about apache2