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
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.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!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With