configure: error: !!! OpenSSL is not properly installed on your system. !!! 错误解决

项目场景:

在Linux系统下使用命令解压安装 keepalived 源码包。


问题描述:

安装 keepalived 源码包,已经运行了以下命令:

tar -xzvf keepalived-2.2.2.tar.gz
cd keepalived-2.2.2
./configure --prefix=/usr/local/keepalived
yum -y install gcc
./configure --prefix=/usr/local/keepalived

第三个命令运行结果出错,已解决(解决方法),在第五行重新运行该命令出错,报错信息为:

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

原因分析:

出现该错误主要原因缺少头文件,只需要安装openssl和openssl-devel即可。


解决方案:

安装openssl和openssl-devel:

yum -y install openssl openssl-devel

重新运行命令./configure --prefix=/usr/local/keepalived,命令运行正常,问题解决。

如果出现其他错误请参考:
configure: error: no acceptable C compiler found in $PATH 错误解决
WARNING - this build will not support IPVS with IPv6. 警告解决

猜你喜欢

转载自blog.csdn.net/baidu_41847368/article/details/115075929