0

我正在尝试安装 Zenoss Core - 按照安装手册中的说明进行操作,但它抱怨依赖项似乎不应该。看起来它没有查看本地安装的软件包。

你能建议一种方法来改变 yum 命令来解决这个问题吗?

为了说明,即使我安装的所有 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

不过,我收到以下错误,抱怨它们不是 >= 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

机器是一个虚拟的 Red Hat Enterprise Linux Server 6.3 版

我的 /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
4

3 回答 3

1

您需要删除 MySQL 5.6.10 并使用较旧的 5.5.28-1(我尝试使用 5.5.30)。确保您获得客户端、服务器和共享。我整个下午都在同一个问题上撞到了墙上。

于 2013-02-07T01:53:48.400 回答
0

谢谢mmmmmScotch。
我发现以下 RPM 无怨无悔地共存:
zenoss-4.2.3-1695.el6.x86_64
MySQL-server-5.6.10-1.el6.x86_64
MySQL-shared-5.6.10-1.el6.x86_64
MySQL-client -5.5.28-1.linux2.6.x86_64

于 2013-02-07T15:13:04.880 回答
0

案件不相符。严重地。MySQL并且mysql是两个完全不同的包。

也就是说,我对zenoss一无所知(我是为了rpm标签而来的)。你从哪里得到你的MySQL包安装?我不知道它的标准格式是什么,但他们可能应该%providesmysql...

于 2013-02-07T00:37:39.287 回答