configure: error: APR not found. Please read the documentation configure: error: APR not found. Please read the documentation apache apache

configure: error: APR not found. Please read the documentation


Actualy I had to install aprutils also... So try using:

sudo apt-get install libapr1-dev libaprutil1-dev


In the directory where you have installed the apache httpd distribution there is a directory that is called /srclib

You cd into that directory cd /srclib.Make sure you are in that folder. Now open your browser and go to http://apr.apache.org/download.cgiand download the apr-*.tar.gz files into this directory.

wget <link>

Unzip and extract them into srclib directoryafter extracting make sure you rename the apr-* directories to just "apr" and "apr-util", respectively. For example:

mv apr-1.6.5 aprmv apr-util-1.6.1 apr-util

Now, it should read the .apr files from that folder.After that it will ask for apr-util too, make sure you follow the same procedure.

Hope this helps!


If your install on apache 2.2 or less than add flag--with-included-apr

If you are using 2.4 than you can go to https://apr.apache.org/download.cgi and download the latest apr and apr-util. Unpack them and move them into the apache source file into /srclib. Make sure they are named apr and apr-util not apr.x.x.x. Then you can use the --with-included-apr flag