1》下载apr、apr-util、pcre源代码包
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
wgethttp://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
wget --no-check-certificatehttps://ftp.pcre.org/pub/pcre/pcre-8.10.tar.gz
2》卸载yum安装的apr、apr-util、pcre
yum remove apr-util-devel apr apr-util-mysqlapr-docs apr-devel apr-util apr-util-docs
3》安装apr,解决apr not
found问题
[root@xt test]# tar -zxf apr-1.4.5.tar.gz
[root@xt test]# cdapr-1.4.5
[root@xt apr-1.4.5]# ./configure--prefix=/usr/local/apr
[root@xt apr-1.4.5]# make && makeinstall
4》安装apr-util,解决apr-util not found问题
[root@xt test]# tar -zxf apr-util-1.3.12.tar.gz
[root@xt test]# cd apr-util-1.3.12
[root@xt apr-util-1.3.12]# ./configure--prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
[root@xt apr-util-1.3.12]# make&& make install
5》解决pcre问题
[root@xt test]#tar -zxvf pcre-8.10.tar.gz
[root@xt test]#cd pcre-8.10
[root@xt pcre-8.10]#./configure --prefix=/usr/local/pcre
[root@xt pcre-8.10]#make && make install
6》安装openssl
tarzxvf openssl-1.1.0g.tar.gz
cdopenssl-1.1.0g
./config--prefix=/usr/local/openssl
./config--prefix=/usr/local/openssl