2014-03-01
CentOS 6.5 預設的 rrdtool 是1.3.8,如果要安裝 1.4.8 版,要另想辦法
[root@localhost examples]# yum list | grep rrdtool
rrdtool.i686 1.3.8-6.el6 base
rrdtool.x86_64 1.3.8-6.el6 base
rrdtool-devel.i686 1.3.8-6.el6 base
rrdtool-devel.x86_64 1.3.8-6.el6 base
rrdtool-doc.x86_64 1.3.8-6.el6 base
rrdtool-perl.x86_64 1.3.8-6.el6 base
rrdtool-php.x86_64 1.3.8-6.el6 base
rrdtool-python.x86_64 1.3.8-6.el6 base
rrdtool-ruby.x86_64 1.3.8-6.el6 base
rrdtool-tcl.x86_64 1.3.8-6.el6 base
[root@localhost examples]#
安裝
yum -y install gcc cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel
cd /usr/local/src
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.8.tar.gz
tar zxvf rrdtool-1.4.8.tar.gz
cd rrdtool-1.4.8
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
mkdir -p /usr/local/rrdtool
./configure --prefix=/usr/local/rrdtool
make
make install
驗證
cd /usr/local/rrdtool/share/rrdtool/examples/
./stripes.pl
ls -l
cp stripes.png /var/www/html/
yum -y install httpd
service httpd start
firefox http://your-domain.com/stripes.png &
**********************************
2014-08-06 補充
CentOS 7.0 x64_86 的 yum 已經可以安裝 rrdtool 1.4.8 版
[root@localhost ~]# yum list | grep rrdtool
rrdtool.i686 1.4.8-8.el7 base
rrdtool.x86_64 1.4.8-8.el7 base
rrdtool-devel.i686 1.4.8-8.el7 base
rrdtool-devel.x86_64 1.4.8-8.el7 base
rrdtool-doc.x86_64 1.4.8-8.el7 base
rrdtool-lua.x86_64 1.4.8-8.el7 base
rrdtool-perl.x86_64 1.4.8-8.el7 base
rrdtool-php.x86_64 1.4.8-8.el7 base
rrdtool-python.x86_64 1.4.8-8.el7 base
rrdtool-ruby.x86_64 1.4.8-8.el7 base
rrdtool-tcl.x86_64 1.4.8-8.el7 base
[root@localhost ~]#
CentOS 7.0 的 yum 提供 1.4.8 版 rrdtool 安裝了,RRDTool 官方最新版目前也是 1.4.8
回覆刪除