安装zabbix时, yum install curl-devel没问题,问题如下

 

1.yum install net-snmp-devel报错

“error: Failed dependencies:
rpm = 4.4.2.3-32.el5_9 is needed by (installed) rpm-libs-4.4.2.3-32.el5_9.i386

The program package-cleanup is found in the yum-utils package”
各种依赖很恶心,最后把rpm和yum自己都依赖进去了
尝试yum移除一些依赖,但是会把rpm和yum本身也删除掉

使用其他的方法也不行:
yum clean all 
rpm --rebuilddb 
yum update 

2.尝试删除rpm-libs
#rpm -qa|grep rpm-libs|xargs rpm -e --nodeps

报错:
#librpm-4.4.so: cannot open shared object file: No such file or directory
导致yum都用不了!

3.从其他机器上拷贝下面的文件到:
 #scp /usr/lib/librpm* 10.66.129.212:/usr/lib
再yum install net-snmp-devel成功!。。