RedHat6.2 下RRDTool安装方法

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
[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
[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数据库

通过RRDtool简单绘制图像

安装RRDtool时候的报错configure: error: Please fix the library issues listed above and try again

RHEL5.5安装RRDtool 解决多多依赖关系

CentOS中使用yum安装RRDtool

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/b0cac7cff27e9b912986c1ed9eb925e8.html