怎麼辦? configure: error: APR not found. Please read the documentation. 在 CentOS 7 的 Apache 中編譯 apr apr-util apr-iconv

在CentOS 7 上編譯Apache的時候
遇到
checking target system type... x86_64-unknown-linux-gnu
configure: 
configure: Configuring Apache Portable Runtime library...
configure: 
checking for APR... no
configure: error: APR not found.  Please read the documentation.
怒!立刻上 官網 下載apr apr-util apr-iconv 這三個相依元件
這次很方便,只要解開丟在/apache/srclib 下就可以了
#cd /tmp
#wget http://ftp.mirror.tw/pub/apache//apr/apr-1.5.1.tar.gz
#tar -zxvf apr-1.5.1.tar.gz
移動到我們正要編譯的apache原始檔下的/srclib 並改名apr
#mv apr-1.5.1 /tmp/httpd-2.4.10/srclib/apr
apr-util 跟 apr-iconv 也如法炮製
#wget http://ftp.twaren.net/Unix/Web/apache//apr/apr-util-1.5.4.tar.gz
# mv apr-util-1.5.4 /tmp/httpd-2.4.10/srclib/apr-util
# wget http://ftp.twaren.net/Unix/Web/apache//apr/apr-iconv-1.2.1.tar.gz
# mv apr-iconv-1.2.1 /tmp/httpd-2.4.10/srclib/apr-iconv
在編譯一次Apache!

留言