我试图在运行perl 5.8.9的CentOS 5服务器上设置opsview (Nagios)
当我尝试启动它时,它找不到RRDs.pm
。原来,我也不能。它不在CPAN上,我一直无法确定什么包能提供它。yum provides "*/RRDs.pm"
不返回任何结果。
编辑:所以我们已经确定它应该和perl-rrdtool
包一起使用,但不幸的是没有。我该去哪里呢?
发布于 2010-10-07 21:12:58
RRDs.pm应该由perl-rrdtool提供,但是您表示已经安装了这个程序。
您的脚本找不到RRDs.pm,但是RRDs.pm可能仍然安装在您的系统上,只是不是在PERL希望找到它的地方。
这些命令中有一条告诉你什么?
(您可能需要首先使用locate
或类似的cron命令更新/etc/cron.daily/mlocate
数据库)
locate RRDs.pm
或者:
find / -type f -name RRDs.pm
发布于 2015-05-10 06:39:18
在RHEL6上运行下面的命令解决了这个问题。
yum install rrdtool-perl
发布于 2017-02-20 12:05:03
Loaded plugins: langpacks, product-id, subscription-manager
This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.
http://apt.sw.be/redhat/el7Server/en/x86_64/dag/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: apt.sw.be; Name or service not known"
Trying other mirror.
其中一个配置的存储库失败(),而且yum没有足够的缓存数据来继续。在这一点上,百胜能做的唯一安全的事情就是失败。有几种方法可以“修复”这个问题:
failure: repodata/repomd.xml来自dag:Errno 256,没有更多的镜像可以尝试。http://apt.sw.be/redhat/el7Server/en/x86_64/dag/repodata/repomd.xml:Errno 14 curl#6 -“无法解析主机: apt.sw.be;名称或服务未知”
https://serverfault.com/questions/188763
复制相似问题