安装Keepalived报错 OpenSSL is not properly installed on your system. !!!

2020-03-23T10:27:00

安装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就成功了

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »