因为没有配置源,所以为源码编译,中间发现缺少很多包,都需要源码编译,还有点麻烦,需要apr、apr-util、expat、sqlite-amalgamation、zlib众多源码包,如果环境中没有安装openssl,还需要openssl源码包。
1、整个编译过程如下
# tar -zxf apr-1.6.5.tar.gz
# cd apr-1.6.5/
# ./configure --prefix=/usr/local/apr
# make && make install
# tar -zxf apr-util-1.6.1.tar.gz
# cd apr-util-1.6.1/
# ./configure --prefix=/usr/local/apr-util
checking for APR... no
configure: error: APR could not be located. Please use the --with-apr option
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
# make && make install
make[1]: *** [xml/apr_xml.lo] Error 1
make[1]: Leaving directory `/home/data/apr-util-1.6.1'
make: *** [all-recursive] Error 1
# tar -zxf expat-2.1.0.tar.gz
# cd expat-2.1.0/
# ./configure --prefix