简体   繁体   English

百胜(不正确?)抱怨MySql依赖项-安装zenoss时

[英]yum complains (incorrectly?) of MySql dependencies - when installing zenoss

I'm trying to install Zenoss Core - following the instructions in the installation manual, but it complains on dependencies which seems it should not. 我正在尝试按照安装手册中的说明安装Zenoss Core,但它抱怨依赖项,似乎不应该这样做。 Looks like it is not looking at the locally installed packages. 看起来它不在查看本地安装的软件包。

Could you suggest a way to change the yum command to get around this problem? 您能否提出一种更改yum命令的方法来解决此问题?

To illustrate, even though all my installed MySql RPMs are of version 5.6.10-1.el6 为了说明这一点,即使我所有的MySQL安装的RPM 5.6.10-1.el6版本

[root@ip-10-110-175-98 tmp]# rpm -qa | grep -i mysql
MySQL-server-5.6.10-1.el6.x86_64
MySQL-shared-5.6.10-1.el6.x86_64
MySQL-client-5.6.10-1.el6.x86_64

Still, I get the below errors complaining that they are not >= 5.5.13 不过,我仍然收到以下错误,抱怨它们不是> = 5.5.13

[root@ip-10-110-175-98 tmp]# yum -y --nogpgcheck --enablerepo=epel localinstall zenoss-4.2.0.el6.x86_64.rpm
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Local Package Process
Examining zenoss-4.2.0.el6.x86_64.rpm: zenoss-4.2.0-1586.el6.x86_64
Marking zenoss-4.2.0.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package zenoss.x86_64 0:4.2.0-1586.el6 will be installed
--> Processing Dependency: memcached >= 1.4.4 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: mysql-client >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: mysql-server >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: mysql-shared >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-dig >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-dns >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-http >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-ircd >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-ldap >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-ntp >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-perl >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-ping >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-rpc >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: nagios-plugins-tcp >= 1.4.15 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: net-snmp >= 5.3.2.2-9 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: net-snmp-utils >= 5.3.2.2-9 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: liberation-fonts-common for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: liberation-mono-fonts for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: liberation-sans-fonts for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: liberation-serif-fonts for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: libgcj for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: sysstat for package: zenoss-4.2.0-1586.el6.x86_64
--> Running transaction check
---> Package liberation-fonts-common.noarch 0:1.05.1.20090721-5.el6 will be installed
---> Package liberation-mono-fonts.noarch 0:1.05.1.20090721-5.el6 will be installed
---> Package liberation-sans-fonts.noarch 0:1.05.1.20090721-5.el6 will be installed
---> Package liberation-serif-fonts.noarch 0:1.05.1.20090721-5.el6 will be installed
---> Package libgcj.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: libart_lgpl >= 2.1.0 for package: libgcj-4.4.6-4.el6.x86_64
---> Package memcached.x86_64 0:1.4.4-3.el6 will be installed
---> Package nagios-plugins.x86_64 0:1.4.16-5.el6 will be installed
--> Processing Dependency: nagios-common >= 3.3.1-1 for package: nagios-plugins-1.4.16-5.el6.x86_64
---> Package nagios-plugins-dig.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-dns.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-http.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-ircd.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-ldap.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-ntp.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-perl.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-ping.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-rpc.x86_64 0:1.4.16-5.el6 will be installed
---> Package nagios-plugins-tcp.x86_64 0:1.4.16-5.el6 will be installed
---> Package net-snmp.x86_64 1:5.5-41.el6_3.1 will be installed
--> Processing Dependency: net-snmp-libs = 1:5.5-41.el6_3.1 for package: 1:net-snmp-5.5-41.el6_3.1.x86_64
--> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-41.el6_3.1.x86_64
--> Processing Dependency: libnetsnmptrapd.so.20()(64bit) for package: 1:net-snmp-5.5-41.el6_3.1.x86_64
--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: 1:net-snmp-5.5-41.el6_3.1.x86_64
--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: 1:net-snmp-5.5-41.el6_3.1.x86_64
--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: 1:net-snmp-5.5-41.el6_3.1.x86_64
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: 1:net-snmp-5.5-41.el6_3.1.x86_64
---> Package net-snmp-utils.x86_64 1:5.5-41.el6_3.1 will be installed
---> Package sysstat.x86_64 0:9.0.4-20.el6 will be installed
---> Package zenoss.x86_64 0:4.2.0-1586.el6 will be installed
--> Processing Dependency: mysql-client >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: mysql-server >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: mysql-shared >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Running transaction check
---> Package libart_lgpl.x86_64 0:2.3.20-5.1.el6 will be installed
---> Package lm_sensors-libs.x86_64 0:3.1.1-10.el6 will be installed
---> Package nagios-common.x86_64 0:3.4.4-1.el6 will be installed
---> Package net-snmp-libs.x86_64 1:5.5-41.el6_3.1 will be installed
---> Package zenoss.x86_64 0:4.2.0-1586.el6 will be installed
--> Processing Dependency: mysql-client >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: mysql-server >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Processing Dependency: mysql-shared >= 5.5.13 for package: zenoss-4.2.0-1586.el6.x86_64
--> Finished Dependency Resolution
Error: Package: zenoss-4.2.0-1586.el6.x86_64 (/zenoss-4.2.0.el6.x86_64)
           Requires: mysql-server >= 5.5.13
           Available: mysql-server-5.1.47-4.el6.x86_64 (rhui-us-east-1-rhel-server-releases)
               mysql-server = 5.1.47-4.el6
           Available: mysql-server-5.1.52-1.el6_0.1.x86_64 (rhui-us-east-1-rhel-server-releases)
               mysql-server = 5.1.52-1.el6_0.1
           Available: mysql-server-5.1.61-1.el6_2.1.x86_64 (rhui-us-east-1-rhel-server-releases)
               mysql-server = 5.1.61-1.el6_2.1
           Available: mysql-server-5.1.61-4.el6.x86_64 (rhui-us-east-1-rhel-server-releases)
               mysql-server = 5.1.61-4.el6
           Available: mysql-server-5.1.66-1.el6_3.x86_64 (rhui-us-east-1-rhel-server-releases)
               mysql-server = 5.1.66-1.el6_3
           Available: mysql-server-5.1.66-2.el6_3.x86_64 (rhui-us-east-1-rhel-server-releases)
               mysql-server = 5.1.66-2.el6_3
           Available: mysql-server-5.1.67-1.el6_3.x86_64 (rhui-us-east-1-rhel-server-releases)
               mysql-server = 5.1.67-1.el6_3
Error: Package: zenoss-4.2.0-1586.el6.x86_64 (/zenoss-4.2.0.el6.x86_64)
           Requires: mysql-client >= 5.5.13
Error: Package: zenoss-4.2.0-1586.el6.x86_64 (/zenoss-4.2.0.el6.x86_64)
           Requires: mysql-shared >= 5.5.13
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Machine is a virtual Red Hat Enterprise Linux Server release 6.3 机器是虚拟的Red Hat Enterprise Linux Server 6.3版

My /etc/yum.conf is: 我的/etc/yum.conf是:

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

You need to remove MySQL 5.6.10 and use an older one- 5.5.28-1 (i tried with 5.5.30). 您需要删除MySQL 5.6.10并使用旧的5.5-28-1(我尝试过使用5.5.30)。 make sure you get client, server, and shared. 确保获得客户端,服务器和共享。 I hit my head on a wall all afternoon on this same issue. 整个下午,我都在同一墙上撞墙。

The case doesn't match. 大小写不符。 Seriously. 说真的 MySQL and mysql are two totally different packages. MySQLmysql是两个完全不同的软件包。

That said, I know nothing about zenoss (I came for the rpm tag). 也就是说,我对zenoss一无所知(我来了rpm标签)。 Where did you get your MySQL package to install? 您在哪里安装了MySQL软件包? I don't know which is the standard format for it, but they probably should have put a virtual %provides tag for mysql ... 我不知道它的标准格式,但是他们可能应该为mysql放一个虚拟的%provides标签。

Thanks mmmmmScotch. 谢谢mmmmmScotch。
I found that the following RPMs coexist without complaints: 我发现以下RPM并存而没有抱怨:
zenoss-4.2.3-1695.el6.x86_64 zenoss-4.2.3-1695.el6.x86_64
MySQL-server-5.6.10-1.el6.x86_64 MySQL服务器5.6.10-1.el6.x86_64
MySQL-shared-5.6.10-1.el6.x86_64 MySQL共享的5.6.10-1.el6.x86_64
MySQL-client-5.5.28-1.linux2.6.x86_64 MySQL客户端5.5.28-1.linux2.6.x86_64

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM