歡迎您光臨本站 註冊首頁

Ganglia安裝完美解決方案

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

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 雲網管。這個軟體很不錯的
我們公司一直有在用的  
簡單 方便    你可以百度一下 看看他的好評

[火星人 ] Ganglia安裝完美解決方案已經有819次圍觀

http://coctec.com/docs/service/show-post-1753.html