安装keepalived时,提示缺少libnetsnmpagent和libnetsnmpmibs问题解决方法
1、使用rpm命令安装keepalived时,得到error提示如下
[root@localhost ~]# rpm -i keepalived-1.3.5-1.el7.x86_64.rpm
warning: keepalived-1.3.5-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
libnetsnmpagent.so.31()(64bit) is needed by keepalived-1.3.5-1.el7.x86_64
libnetsnmpmibs.so.31()(64bit) is needed by keepalived-1.3.5-1.el7.x86_64
2、使用yum安装net-snamp
[root@localhost ~]# yum install net-snmp