《2022年ganglia安装配置 3.pdf》由会员分享,可在线阅读,更多相关《2022年ganglia安装配置 3.pdf(4页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、ganglia安装配置(2009-04-15 02:31:07)转载标签:ganglia安装分类:Monitor一、redhat as4.3 i386!除 confuse 安装之外其它可以用rpm 包安装第一步:下载所需套件1)ganglia-3.1.0.tar.gz http:/ http:/bzero.se/confuse/3)expat-2.0.1.tar.gz http:/ 与 apr-util-1.3.2.tar.bz2 http:/apr.apache.org/download.cgi5)rrdtool-1.2.27.tar.gz ftp:/ftp.pucpr.br/rrdtool
2、/rrdtool-1.2.27.tar.gz第二步:安装所下载的软件1)安装 expat-2.0.1.tar.gz tar xvzf expat-2.0.1.tar.gz cd expat*;./configure-prefix=/usr/local/apr;make;make install 名师资料总结-精品资料欢迎下载-名师精心整理-第 1 页,共 4 页 -2)安装 apr-1.3.2.tar.bz2 tar xvjf apr-1.3.2.tar.bz2 cd apr-1.3.2;./configure-prefix=/usr/local/apr-1.3.2;make;make ins
3、tall 3)安装 apr-util-1.3.2.tar.bz2 tar xvjf apr-util-1.3.2.tar.bz2 cd apr-util-1.3.2;./configure-with-apr=/usr/local/apr-1.3.2-with-expat=/usr/local/expat make;make install cp/usr/local/apr-1.3.2/include/apr-1/*/usr/local/apr-1.3.2/include/目录,因为 ganglia 安装时默认会去/usr/local/apr/include 下寻找 apr 的库文件。4)安装
4、rrdtool-1.2.27.tar.gz tar xvzf rrdtool-1.2.27.tar.gz cd rrdtool-1.2.27;./configure-prefix=/usr/local/rrdtool make;make install 5)安装 ganglia-3.1.0.tar.gz 1)tar xvzf ganglia-3.1.0.tar.gz 2)./configure-prefix=/usr/local/ganglia-with-librrd=/usr/local/rrdtool-with-libapr=/usr/local/apr-1.3.2-with-libexp
5、at=/usr/local/expat-with-libconfuse=/usr/local/confuse-with-gmetad-enable-gexec-enable-status 3)make;make install 二、UBUNTU 下安装 ganglia 报错安装文件1、configure:error:apr-1-config binary not found in path 名师资料总结-精品资料欢迎下载-名师精心整理-第 2 页,共 4 页 -apt-get install libapr1-dev 2、libconfuse not found apt-get install
6、libconfuse-dev 3、libexpat not found apt-get install libexpat-dev 4、在 make时,make4:*mod_python.lo Error 1 apt-get install python2.5-dev 三、ganglia 在 redhat as64位的系统里安装时全碰到这样的问题 /usr/local/lib/libconfuse.a:could not read symbols:Bad value collect2:ld returned 1 exit status make2:*libganglia.la Error 1 m
7、ake2:Leaving directory/root/ganglia/subversion/lib make1:*all-recursive Error 1 make1:Leaving directory/root/ganglia/subversion make:*all Error 2 这主要的原因是在安装confuse2.6 时前面没有编译 OK,在重新编译一下confuse2.6 就 OK了。cd confuse-2.6 ./configure-prefix=/usr/local/confuse-2.6 CFLAGS=-fPIC-disable-nls cd ganglia ./configure-prefix=/usr/local/ganglia-with-libconfuse=/usr/local/confuse-2.6 就 OK 小错误名师资料总结-精品资料欢迎下载-名师精心整理-第 3 页,共 4 页 -例1、configure:error:C+preprocessor/lib/cpp fails sanity check 名师资料总结-精品资料欢迎下载-名师精心整理-第 4 页,共 4 页 -
限制150内