无法在 CentOS 上安装 SNMP

无法在 CentOS 上安装 SNMP

我正在尝试在我的 CentOS 上安装 SNMP 实用程序。我的机器上已预装了 Mysql。我收到以下错误:

yum install net-snmp
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.iweb.ca
 * extras: ftp.hosteurope.de
 * updates: centos.mirror.iweb.ca
Resolving Dependencies
--> Running transaction check
---> Package net-snmp.x86_64 1:5.7.2-24.el7_3.2 will be installed
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:net-snmp-5.7.2-24.el7_3.2.x86_64
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.52-1.el7 will be installed
Removing mariadb-libs.x86_64 1:5.5.52-1.el7 - u due to obsoletes from installed mysql-community-libs-5.7.16-1.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.52-1.el7 will be installed
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:net-snmp-5.7.2-24.el7_3.2.x86_64
--> Finished Dependency Resolution
Error: Package: 1:net-snmp-5.7.2-24.el7_3.2.x86_64 (updates)
           Requires: libmysqlclient.so.18()(64bit)
           Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (base)
               libmysqlclient.so.18()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有人能给出如何解决这个问题的主意吗?

答案1

我认为系统中未使用 mysql-community 包,因此删除了这些mysql-community*包并net-snmp安装了所有东西。

rpm -e  mysql-community-client mysql-community-libs mysql-community-common mysql-community-server

相关内容