今天安装rrdtool发现依赖有点坑爹啊!
[root@Nagios packet]# rpm -ivh perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
warning: perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 6b8d79e6: NOKEYerror: Failed dependencies:
rrdtool = 1.4.7 is needed by perl-rrdtool-1.4.7-1.el6.rfx.x86_64
[root@Nagios packet]# rpm -ivh rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
warning: rrdtool-1.4.7-1.el6.rfx.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 6b8d79e6: NOKEY
error: Failed dependencies:
perl(RRDp) is needed by rrdtool-1.4.7-1.el6.rfx.x86_64
perl(RRDs) is needed by rrdtool-1.4.7-1.el6.rfx.x86_64
[root@Nagios packet]# rpm -ivh rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
warning: rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 6b8d79e6: NOKEY
error: Failed dependencies:
rrdtool = 1.4.7 is needed by rrdtool-devel-1.4.7-1.el6.rfx.x86_64
当遇到这种情况,需要将三个包放到一起进行安装:
[root@Nagios rrdtool]# ll
总用量 2064
-rw-r--r-- 1 root root 1054720 11月 17 13:39 perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
-rw-r--r-- 1 root root 840248 11月 17 12:02 rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
-rw-r--r-- 1 root root 209504 11月 17 13:03 rrdtool-devel-1.4.7-1.el6.rfx.x86_64.rpm
然后通过下面命令来进行安装
[root@Nagios rrdtool]# rpm -ivh *
即可安装成功