安裝過屢次APACHE,每次安裝都會發生一些錯誤,按着錯誤一搜,跟着解決方案一步一步就解決了。固然有一些解決方案是坑人的 =。=c++
此次想一想仍是把過程記錄一下,以防下次使用時有過往成功的記錄可查,省的再去找了。apache
APR not foundspa
# cd /opt.net
# wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz orm
# tar -zxf apr-1.4.5.tar.gz ip
# cd apr-1.4.5get
# ./configure --prefix=/usr/local/aprit
# make && make install編譯
APR-util not foundgcc
wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
# cd /opt
# tar -zxf apr-util-1.3.12.tar.gz
# cd apr-util-1.3.12
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
# make && make install
pcre
# wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
# cd /opt
# unzip -o pcre-8.10.zip
# cd pcre-8.10
# ./configure --prefix=/usr/local/pcre
g++: command not found
# yum -y install gcc+ gcc-c++
最後編譯時,加上如下
--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre