Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Apr and Apr-util installlation?

Tags:

apache

apache2

I am installing Apache for first time in ubuntu 12.04 and i looked up in the link Compiling and installing apache

It says we should have APR and APR-util first i follow the procedure and untar them into

/usr/local/srclib/apr and /usr/local/srclib/apr-util directory. Every where it is written

./configure's --with-included-apr

Now i just do ./configure in /usr/local/srclib/apr after that i do ./configure in /usr/local/srclib/apr-util then it throws me error configure: error: APR could not be located. Please use the --with-apr option.

then i add /configure --with-apr it throws an error

error: --with-apr requires a directory or file to be provided.

Please tell me what i am doing wrong here

like image 724
user Avatar asked Dec 15 '22 23:12

user


2 Answers

Try running this:

./configure --with-apr=<directory path where apr is installed>

Eg: If your APR installation exists at /usr/local/apr(default installation location of APR), you should run:

./configure --with-apr=/usr/local/apr

like image 99
Utsav Jha Avatar answered Dec 17 '22 12:12

Utsav Jha


As you are running ./configure in Apache source directory, ./srclib means srclib directory within Apache directory, not in /usr/local. Suppose you place your Apache directory as /usr/local/httpd-2.x.x, then the path for apr and apr-util are as follows:

/usr/local/httpd-2.x.x/srclib/apr

/usr/local/httpd-2.x.x/srclib/apr-util

Now you can use --with-included-apr while configuring apache without any glitch. Just make sure that directories are named exactly as apr and apr-util and do not contain any version number etc. and yo don't need to run configure in apr and apr-util directory. Just place apr and apr-util as mentioned and start building your apache.

like image 37
Zeeshan Avatar answered Dec 17 '22 13:12

Zeeshan