Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

it is not advisable to put each tool in separate directory. just try using --prefix=/usr/local for both APR & APR-Util. or, if you must, use --with-apr=/usr/local/apr/lib

share|improve this answer

I installed APR and APR-UTIL on my Redhat

APR location: /usr/local/apr

Then

APR-UTIL install cmd:

  1. ./configure --with-apr=/usr/local/apr/
  2. make
  3. make install
share|improve this answer

If you followed this tutorial: http://httpd.apache.org/docs/2.2/install.html

# cd srclib/apr
# ./configure --prefix=/usr/local/apr-httpd/
# make
# make install**

then you should go for

# cd ../apr-util
# ./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/bin/apr-2-config
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.