linux 安装apahce的configure: error: APR not found. Please read the documentation解决办法
1、下载所需软件包:
1 下载apr并配置 2 wget http://apache.freelamp.com/apr/apr-1.4.2.tar.gz 下载apr 3 4 ./configure –prefix=/usr/local/apr 5 6 make 7 8 make install 9 10 wget http://apache.freelamp.com/apr/apr-util-1.3.10.tar.gz 11 12 ./configure –prefix=/usr/local/web/apr-util –with-apr=/usr/local/apr 13 14 make 15 16 make install
2、解决APR-util not found
1 下载apr-util并配置 2 tar -zxf apr-util-1.3.12.tar.gz 3 cd apr-util-1.3.12 4 ./configure --prefix=/usr/local/apr-util -with-apr=/usr/local/apr/bin/apr-1-config 5 # make && make install
../configure仍提示APR-util not found
1 增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
3、解决pcre问题
1 下载:http://sourceforge.net/projects/pcre 2 下载地址二:http://ftp.exim.llorien.org/pcre/ 3 4 #unzip -o pcre-8.10.zip 5 6 #cd pcre-8.10 7 8 #./configure --prefix=/usr/local/pcre 9 10 #make 11 12 #make install
最后安装apahce
./configure --prefix=/usr/local/apache --enable-rewrite --enable-modules=most --enable-mods-shared=all --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre