Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 234 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.2K SQL Developer
- 295.3K Development
- 17 Developer Projects
- 138 Programming Languages
- 292K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 27 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 157 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 389 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1K Español
- 1.9K Japanese
- 230 Portuguese
not able to install snmp package

Hi All,
I'm not able to install snmp package and libmysqlclient.so.18 getting dependency issue.
I checked with centos forum but they were asked to check with mysql community.
Please adivse to fix the issue.
root # yum install net-snmp
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
centos-local | 951 B 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/2): extras/7/x86_64/primary_db | 165 kB 00:00:00
(2/2): updates/7/x86_64/primary_db | 7.6 MB 00:00:01
Loading mirror speeds from cached hostfile
* base: mirror.es.its.nyu.edu
* extras: mirror.es.its.nyu.edu
* updates: mirror.umd.edu
Resolving Dependencies
--> Running transaction check
---> Package net-snmp.x86_64 1:5.7.2-43.el7_7.3 will be installed
--> Processing Dependency: net-snmp-libs = 1:5.7.2-43.el7_7.3 for package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: net-snmp-agent-libs = 1:5.7.2-43.el7_7.3 for package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: libnetsnmptrapd.so.31()(64bit) for package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: libnetsnmpmibs.so.31()(64bit) for package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: libnetsnmpagent.so.31()(64bit) for package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.64-1.el7 will be installed
---> Package net-snmp-agent-libs.x86_64 1:5.7.2-43.el7_7.3 will be installed
---> Package net-snmp-libs.x86_64 1:5.7.2-28.el7 will be updated
---> Package net-snmp-libs.x86_64 1:5.7.2-43.el7_7.3 will be an update
Removing mariadb-libs.x86_64 1:5.5.64-1.el7 - u due to obsoletes from installed mysql-community-libs-5.7.20-1.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.64-1.el7 will be installed
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 1:net-snmp-agent-libs-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:net-snmp-agent-libs-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be installed
Removing mariadb-libs.x86_64 1:5.5.56-2.el7 - u due to obsoletes from installed mysql-community-libs-5.7.20-1.el7.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be installed
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 1:net-snmp-agent-libs-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:net-snmp-agent-libs-5.7.2-43.el7_7.3.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64
--> Finished Dependency Resolution
Error: Package: 1:net-snmp-5.7.2-43.el7_7.3.x86_64 (updates)
Requires: libmysqlclient.so.18()(64bit)
Error: Package: 1:net-snmp-agent-libs-5.7.2-43.el7_7.3.x86_64 (updates)
Requires: libmysqlclient.so.18()(64bit)
Error: Package: 1:net-snmp-agent-libs-5.7.2-43.el7_7.3.x86_64 (updates)
Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
# exit
Thanks and Regards,
Prasanna GD.
Best Answer
-
It would really help if we knew which version of Centos you are installing as many do not use the MySQL libraries. The best advice I can give without such information is to follow the instructions on installing MySQL from the official MySQL repository https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html
Dave Stokes
MySQL Community Manager
Answers
-
It would really help if we knew which version of Centos you are installing as many do not use the MySQL libraries. The best advice I can give without such information is to follow the instructions on installing MySQL from the official MySQL repository https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html
Dave Stokes
MySQL Community Manager
-
The OS version is Centos 7.4
cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
-
That version of Centos relies on an old version of the GCC compiler and libraries by default. There are updated RPMs and you can use a service like rpmfind to find what you need https://rpmfind.net/linux/rpm2html/search.php?query=libmysqlclient.so.18()(64bit)
Dave Stokes
MySQL Community Manager
-
libmysqlclient.so.18()(64bit) lib is available only on mariadb-libs.x86_64 1:5.5.64-1.el7 package for https://rpmfind.net/linux/RPM/centos/7.7.1908/x86_64/Packages/mariadb-libs-5.5.64-1.el7.x86_64.html Cent OS. which is creating the problem, you can find the same from my yum install output.
mysql-community-libs and mariadb-libs.x86_64 1:5.5.64-1.el7 packages having conflict between them. looks we cant install both db libs at a same time.
rpm find website provides same information, for centos mariadb-libs is the only package provides libmysqlclient.so.18()(64bit) lib file.