[Vagrant @ RS-1 httpd-2.4.9] $./configure -- prefix =/usr/local/apache
Compile apache and encounter the following error:
Configure: error: APR not found. Please read the documentation.
Configure: error: APR-util not found. Please read the documentation.
Go to http://archive.apache.org/dist/apr/to download the relevant package
[Vagrant @ RS-1 download] $ wget http://archive.apache.org/dist/apr/apr-1.5.1.tar.gz
[Vagrant @ RS-1 download] $ wget http://archive.apache.org/dist/apr/apr-util-1.5.3.tar.gz
Install the apr package
[Vagrant @ RS-1 apr-1.5.1] $./configure -- prefix =/usr/local/apr
[Vagrant @ RS-1 apr-1.5.1] $ make
[Vagrant @ the RS-1 apr-1.5.1] $ sudo make install
Install apr-util
[Vagrant @ RS-1 apr-util-1.5.3] $./configure -- prefix =/usr/local/apr-util-with-apr =/usr/local/apr/bin/apr-1-config
[Vagrant @ RS-1 apr-util-1.5.3] $ make
[Vagrant @ the RS-1 apr-util-1.5.3] $ sudo make install
Finally, add -- with-apr =/usr/local/apr \ -- with-apr-util =/usr/local/apr-util/when compiling apache/
[Vagrant @ RS-1 httpd-2.4.9] $. /configure -- prefix =/usr/local/apache -- with-apr =/usr/local/apr -- with-apr-util =/usr/local/apr-util/