[vagrant@rs-1 httpd-2.4.9]$ ./configure --prefix=/usr/local/apache
編譯apache, 遇到以下錯誤
configure: error: APR not found. Please read the documentation.
configure: error: APR-util not found. Please read the documentation.
去http://archive.apache.org/dist/apr/去下載相關包
[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
安裝 apr 包
[vagrant@rs-1 apr-1.5.1]$ ./configure --prefix=/usr/local/apr
[vagrant@rs-1 apr-1.5.1]$ make
[vagrant@rs-1 apr-1.5.1]$ sudo make 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@rs-1 apr-util-1.5.3]$ sudo make install
最後,編譯apache時候加上 --with-apr=/usr/local/apr \ --with-apr-util=/usr/local/apr-util/
[vagrant@rs-1 httpd-2.4.9]$ ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/