安装Keepalived报错
执行./configure --prefix=/usr/local/keepalived提示

configure: error: 
  !!! OpenSSL is not properly installed on your system. !!!
  !!! Can not include OpenSSL headers files.            !!!

在线安装解决方法:

yum -y install openssl-devel

离线安装方法(重点)
openssl-1.1.0j.tar.gz名字一定要对应 下载地址https://www.openssl.org/source/old/
直接下载该版本:https://www.openssl.org/source/old/1.1.0/openssl-1.1.0j.tar.gz
编译
./config shared zlib
提醒需要在build之前做make depend

make depend

安装OpenSSL

make && make install

然后再次编译./configure --prefix=/usr/local/keepalived就成功了

Last modification:May 6, 2020
如果觉得这篇技术文章对你有用,请随意赞赏