安装zabbix时报错

[root@zabbix ~]# rpm -ivh zabbix-server-mysql-2.2.3-1.el6.x86_64.rpm zabbix-web-mysql-2.2.3-1.el6.noarch.rpm 
warning: zabbix-server-mysql-2.2.3-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
error: Failed dependencies:
 libodbc.so.2()(64bit) is needed by zabbix-server-mysql-2.2.3-1.el6.x86_64
 zabbix-server = 2.2.3-1.el6 is needed by zabbix-server-mysql-2.2.3-1.el6.x86_64
 zabbix-web = 2.2.3-1.el6 is needed by zabbix-web-mysql-2.2.3-1.el6.noarch

 

解决办法

[root@zabbix ~]# yum -y install unixODBC
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch            Version                  Repository     Size
================================================================================
Installing:
 unixODBC          x86_64          2.2.14-12.el6_3          RHEL          378 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 378 k
Installed size: 1.1 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : unixODBC-2.2.14-12.el6_3.x86_64                              1/1 
  Verifying  : unixODBC-2.2.14-12.el6_3.x86_64                              1/1 

Installed:
  unixODBC.x86_64 0:2.2.14-12.el6_3                                             

Complete!