阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

RedHat6.2 下RRDTool安装方法

128次阅读
没有评论

共计 3286 个字符,预计需要花费 9 分钟才能阅读完成。

在 RedHat6.2 下安装 ganglia 的时候,需要安装 ttdtol, 否则是不运去安装的。查了很多,这个可以。

我的环境:

[Hadoop@host8 ~]$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.2 (Santiago)
Release: 6.2
Codename: Santiago

三、另一种 yum 安装
[root@hmg2 src]#wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@hmg2 src]#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[root@hmg2 src]#yum -y install rrdtool*

这个基本可以能用

还有几种:

一、使用 yum 安装:
在 /etc/yum.repos.d/ 下面新建 dag.repo 文件在文件中输入源地址:
[root@hmg2 yum.repos.d]# cat dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
[root@hmg2 yum.repos.d]#yum -y install rrdtool
这样就可以完成 RRDTool 安装……
二、软件包安装:
先 yum 安装所要的库文件:
[root@hmg2 yum.repos.d]#yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel
然后下载 rrdtool 包,安装:
[root@hmg2 src]#wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.1.tar.gz
[root@hmg2 src]#tar -zxvf rrdtool-1.3.1.tar.gz
[root@hmg2 src]#./configure –prefix=/usr/local/rrdtool && make && make install
运行 rrdtool –v 测试安装成功没有:
[root@hmg2 src]#rrdtool -v // 可以看到 RRDTool 的用法以及版本信息

这些我试了试都不行,或许您能行。

安装后结果是:

[root@host6 Desktop]# ls /etc/yum.repos.d/dag.repo
ls: cannot access /etc/yum.repos.d/dag.repo: No such file or directory
[root@host6 Desktop]# ls /etc/yum.repos.d/
mirrors-rpmforge packagekit-media.repo redhat.repo rhel-source.repo rpmforge.repo
[root@host6 Desktop]# yum -y install rrdtool*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 7.3 MB 02:55
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package rrdtool.i386 0:1.4.7-1.el5.rf will be installed
–> Processing Dependency: perl(RRDp) for package: rrdtool-1.4.7-1.el5.rf.i386
–> Processing Dependency: ruby for package: rrdtool-1.4.7-1.el5.rf.i386
–> Processing Dependency: libdbi.so.0 for package: rrdtool-1.4.7-1.el5.rf.i386
–> Processing Dependency: perl(RRDs) for package: rrdtool-1.4.7-1.el5.rf.i386
—> Package rrdtool-devel.i386 0:1.4.7-1.el5.rf will be installed
–> Running transaction check
—> Package perl-rrdtool.i386 0:1.4.7-1.el5.rf will be installed
—> Package rrdtool.i386 0:1.4.7-1.el5.rf will be installed
–> Processing Dependency: ruby for package: rrdtool-1.4.7-1.el5.rf.i386
–> Processing Dependency: libdbi.so.0 for package: rrdtool-1.4.7-1.el5.rf.i386
–> Finished Dependency Resolution
Error: Package: rrdtool-1.4.7-1.el5.rf.i386 (rpmforge)
 Requires: ruby
Error: Package: rrdtool-1.4.7-1.el5.rf.i386 (rpmforge)
 Requires: libdbi.so.0
 You could try using –skip-broken to work around the problem
 You could try running: rpm -Va –nofiles –nodigest

相关阅读

使用 RRDtool 自定义绘图监控 Oracle 数据库 http://www.linuxidc.com/Linux/2012-11/74755.htm

通过 RRDtool 简单绘制图像 http://www.linuxidc.com/Linux/2012-08/68095.htm

安装 RRDtool 时候的报错 configure: error: Please fix the library issues listed above and try again http://www.linuxidc.com/Linux/2012-08/67083.htm

RHEL5.5 安装 RRDtool 解决多多依赖关系 http://www.linuxidc.com/Linux/2012-05/61403.htm

CentOS 中使用 yum 安装 RRDtool http://www.linuxidc.com/Linux/2012-05/61352.htm

更多 RedHat 相关信息见 RedHat 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=10

本文永久更新链接地址 :http://www.linuxidc.com/Linux/2016-07/133199.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-21发表,共计3286字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中