Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

apache

fedora

apr

I am trying to install apache in my linux machine. But when I tried ./configure --prefix = /usr/local/apache it shows an error configure: error: APR not found. Please read the documentation. I tried to install apr with yum install apr apr-deve and it says

Package apr-1.4.6-1.fc15.x86_64 already installed and latest version No package apr-deve available.

Nothing to do What should I do now? Please excuse I am a newbie to LINUX

like image 791
AssamGuy Avatar asked Dec 20 '12 07:12

AssamGuy


3 Answers

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

sudo apt-get install libapr1-dev libaprutil1-dev
like image 113
lrepolho Avatar answered Nov 19 '22 02:11

lrepolho


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.cgi and download the apr-*.tar.gz files into this directory.

wget <link>

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

mv apr-1.6.5 apr
mv 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!

like image 37
Joel Nishanth Ponukumatla Avatar answered Nov 19 '22 01:11

Joel Nishanth Ponukumatla


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

like image 9
morsik Avatar answered Nov 19 '22 01:11

morsik