码迷,mamicode.com
首页 > 其他好文 > 详细

RedHat6.2 下RRDTool安装方法

时间:2016-07-15 06:09:27      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:

在安装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-r ... 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

 

RedHat6.2 下RRDTool安装方法

标签:

原文地址:http://www.cnblogs.com/nucdy/p/5672109.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!