Ganglia安装完美解决方案
Ganglia安装完美解决方案采用centos-5.3,系统更新到最新
yum -y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel
rpmbuild glib2-devel dbus-devel freetype-devel fontconfig-devel gcc-c++ expat-devel
python-devel libXrender-devel
将/usr/lib里的库,拷贝到/usr/liboriginal类似备份一个,免得出现错误,导致进不了图形界面。
事先、安装libconfuse 便于之后的安装需要
32位os下载:
引用
wget http://download.fedora.redhat.com/pub/epel/5/i386/libconfuse-2.5-4.el5.i386.rpm
wget http://download.fedora.redhat.com/pub/epel/5/i386/libconfuse-devel-2.5-4.el5.i386.rpm
64位os下载:
引用
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-2.5-4.el5.x86_64.rpm
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/libconfuse-devel-2.5-4.el5.x86_64.rpm
rpm –ivh libconfuse-2.5-4.el5.i386.rpm libconfuse-devel-2.5-4.el5.i386.rpm
首先关键一步安装rrdtool,rrdtool的安装放式,注意安装目录
这里把安装的过程简单的写一下,为后人参考,避免少走弯路。
在安装前检查系统是否安装了tcl、pango-devel相关的包
1
2 shell#rpm –qa|grep tcl*
shell#rpm –qa|grep pango-devel
在安装rrdtool时需要cairo包的支持,而cairo又需要pkg-config、glib、pixman、pang、freetype、fontconfig包的支持
http://ftp.idilis.ro/mirrors/rrdtool/libs/
安装的顺序是:
1. pkg-config
1
2
3 shell#./configure --prefix=/usr
shell#make
shell#make install
后面5个包采用上面相同的方法安装
2. glib-2.14.0.tar.bz2
3. pixman- 0 .13.2.tar.gz
4. freetype-2.1.10.tar.bz2
5. fontconfig-2.4.2.tar.gz
6. cairo-1.6.4.tar.gz
7. pango-1.21.1.tar.bz2
1
2
3 shell#./configure --prefix=/usr --enable-cairo
shell#make
shell#make install
这里注意,在编译pango的时候使用–enable-cairo 并且确保他能找到cairo的库
若configure时没有找到cairo库,导致没有生成pangocairo库
configure: WARNING:
—————————————————————————-
* I found a copy of pkgconfig, but there is no pangocairo.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
—————————————————————————-
若出现以上错误信息,请用下面的命令查看
shell#ls $PKG_CONFIG_PATH | grep pangocairo.pc
然后shell#find / -name pangocairo.pc
然后shell#export PKG_CONFIG_PATH=上面find的结果
现在安装rrdtool-1.3.6.tar.gz需要的库文件
1.cgilib- 0 .5.tar.gz
1
2
3
4 shell#tar xzvf cgilib-0.5.tar.gz
shell#make
shell#cp libcgi.a /usr/lib
shell#cp cgi.h /usr/include
2.libart_lgpl-2.3.17.tar.gz
1
2
3 shell#./configure --prefix=/usr
shell#make
shell#make install
3.libpng-1.2.10.tar.gz
1
2
3 shell#./configure --prefix=/usr
shell#make
shell#make install
4.zlib-1.2.3.tar.gz
1
2
3 shell#./configure --prefix=/usr
shell#make
shell#make install
5.rrdtool-1.3.6.tar.gz 哇哦好复杂呀
我也来给大家推荐一个
Crecloud 云网管。这个软件很不错的
我们公司一直有在用的
简单 方便 你可以百度一下 看看他的好评
页:
[1]