快速安装rrdtool

1.通过yum自动安装rrdtool
# vi /etc/yum.repos.d/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
#rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
搞定后,直接yum安装如下:
#yum install rrdtool  
即可安装成功.
第二种方法:
2.通过编译安装rrdtool
先通过yum安装基本的包和库文件:
# yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel
# cd /opt/
# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.1.tar.gz
# tar -zxvf rrdtool-1.3.1.tar.gz
# export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
# ./configure
# make
# make install
# cd /usr/local/
# ln -s rrdtool-1.3.1/ rrdtool/
# cd rrdtool
# ls -l

你可能感兴趣的:(职场,rrdtool,休闲)