1、问题描述
RHEL6.2安装zabbix-agent 4.4报错提示如下:
# rpm -ivh zabbix-agent-4.4.10-1.el6.x86_64.rpm
warning: zabbix-agent-4.4.10-1.el6.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
error: Failed dependencies:
libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by zabbix-agent-4.4.10-1.el6.x86_64
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by zabbix-agent-4.4.10-1.el6.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by zabbix-agent-4.4.10-1.el6.x86_64
libssl.so.10(libssl.so.10)(64bit) is needed by zabbix-agent-4.4.10-1.el6.x86_64
libz.so.1(ZLIB_1.2.0)(64bit) is needed by zabbix-agent-4.4.10-1.el6.x86_64
2、原因分析
看报错信息发现zabbix-agent需要依赖于OpenSSL 1.0.1
查询机器的OpenSSL的版本
# openssl version
OpenSSL 1.0.0-fips 29 Mar 2010
发现版本为1.0.0,不含有zabbix agent 4.4所需要so文件,需要更新OpenSSL的版本。
3、解决方法
需要下载OpenSSL 1.0.1的rpm安装包
openssl-1.0.1e-58.el6_10.x86_64.rpm
openssl-devel-1.0.1e-58.el6_10.x86_64.rpm
可以从阿里yum源下载,也可以从其他源进行下载
https://mirrors.aliyun.com/centos/6.10/updates/x86_64/Packages/
将两个包上传至服务器,使用rpm命令进行安装
yum -y install krb5-devel zlib-devel # 安装openssl-devel所需要的依赖包
rpm -Uvh openssl-1.0.1e-58.el6_10.x86_64.rpm --nodeps --force # 升级openssl
rpm -ivh openssl-devel-1.0.1e-58.el6_10.x86_64.rpm # 安装openssl-devel
安装完成后,查询OpenSSL版本,是否升级成功
# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
然后再次尝试安装zabbix-agent 4.4
# rpm -ivh zabbix-agent-4.4.10-1.el6.x86_64.rpm
warning: zabbix-agent-4.4.10-1.el6.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Preparing... ########################################### [100%]
1:zabbix-agent ########################################### [100%]
安装成功,问题解决!