感谢支持
我们一直在努力

CentOS 6.2安装Heartbeat-3-0-7各种错误解决方案

研究一下Heartbeat,其官方下载网站:http://www.linux-ha.org/wiki/Downloads

 目前版本:
 ClusterLabs-resource-agents-v3.9.2-0-ge261943.tar.gz
 Heartbeat-3-0-7e3a82377fa8.tar.bz2
 Pacemaker-1-2-cc0e4d295e29.tar.bz2
 Reusable-Cluster-Components-glue–glue-1.0.9.tar.bz2

 在安装过程中遇到各种错误,方便网上童靴会遇到和我一样的问题,我把解决办法整理如下,也同时希望大家补充:

 我用的系统是:
 [root@host2 ~]# cat /etc/RedHat-release
CentOS release 6.2 (Final)
 [root@host2 ~]# uname -a
 Linux host2.linuxbrother.com 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux

 1、libtoolize: `COPYING.LIB’ not found in `/usr/share/libtool/libltdl’
 解决办法:
 yum -y install libtool-ltdl-devel
 
2、checking for special libxml2 includes… configure: error: libxml2 config not found
 解决办法:
 yum -y install libxml2
 
3、configure: error: BZ2 libraries not found
 解决办法:
 yum -y install bzip2-devel glib2-devel
 
前三种感觉是常识性问题,各位如果经常安装源码包的话这种错误解决起来应该很easy的。
 
4、安装Reusable-Cluster-Components-glue–glue-1.0.9
 ./.libs/libplumb.so: undefined reference to `uuid_parse’
 ./.libs/libplumb.so: undefined reference to `uuid_generate’
 ./.libs/libplumb.so: undefined reference to `uuid_copy’
 ./.libs/libplumb.so: undefined reference to `uuid_is_null’
 ./.libs/libplumb.so: undefined reference to `uuid_unparse’
 ./.libs/libplumb.so: undefined reference to `uuid_clear’
 ./.libs/libplumb.so: undefined reference to `uuid_compare’
 collect2: ld returned 1 exit status
 gmake[2]: *** [ipctest] Error 1
 gmake[2]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.6/lib/clplumbing’
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.6/lib’
 make: *** [all-recursive] Error 1
 解决办法:
  ./configure –prefix=$PREFIX  –with-daemon-user=${CLUSTER_USER} –with-daemon-group=${CLUSTER_GROUP} –enable-fatal-warnings=no LIBS=’/lib64/libuuid.so.1′
 各位在./configure的时候指定一下LIBS,如果是32位系统的话改成LIBS=’/lib/libuuid.so.1’。下面ClusterLabs-resource Heartbeat在./configure的时候都指定一下,要不然继续报错。
 
 5、安装Heartbeat-3-0-7
 uuid_parse.c:250: error: expected ‘;’, ‘,’ or ‘)’ before ‘uu’
 uuid_parse.c:469: error: expected ‘)’ before ‘out’
 uuid_parse.c:484: error: expected ‘)’ before ‘out’
 uuid_parse.c:512: error: expected ‘)’ before ‘out’
 gmake[1]: *** [uuid_parse.lo] Error 1
 gmake[1]: Leaving directory `/usr/src/Heartbeat-3-0-7e3a82377fa8/replace’
 make: *** [all-recursive] Error 1
 解决办法:
 # ./configure –prefix=$PREFIX –enable-fatal-warnings=no LIBS=’/lib64/libuuid.so.1′
 
gmake[1]: –xinclude: Command not found
 gmake[1]: *** [heartbeat.8] Error 127
 gmake[1]: Leaving directory `/usr/src/Heartbeat-3-0-7e3a82377fa8/doc’
 make: *** [all-recursive] Error 1
 解决办法:
 # yum -y install libxslt-devel

赞(0) 打赏
转载请注明出处:服务器评测 » CentOS 6.2安装Heartbeat-3-0-7各种错误解决方案
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏