免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2397 | 回复: 6

pacemaker 安装问题 [复制链接]

论坛徽章:
0
发表于 2012-03-20 16:16 |显示全部楼层
平台:centos 5.x
内核: 2.6.18-194.el5
pacemaker版本:Pacemaker-1-1-0
编译方法: ./configure --prefix=${PREFIX} --with-heartbeat --with-lcrso-dir=/usr/libexec/lcrso  && make  && make install
问题:
utils.c: In function 'compare_capacity':
utils.c:199: error: 'GHashTableIter' undeclared (first use in this function)
utils.c:199: error: (Each undeclared identifier is reported only once
utils.c:199: error: for each function it appears in.)
utils.c:199: error: expected ';' before 'iter'
cc1: warnings being treated as errors
utils.c:200: warning: ISO C90 forbids mixed declarations and code
utils.c:206: warning: implicit declaration of function 'g_hash_table_iter_init'
utils.c:206: warning: nested extern declaration of 'g_hash_table_iter_init'
utils.c:206: error: 'iter' undeclared (first use in this function)
utils.c:207: warning: implicit declaration of function 'g_hash_table_iter_next'
utils.c:207: warning: nested extern declaration of 'g_hash_table_iter_next'
utils.c: In function 'calculate_utilization':
utils.c:321: error: 'GHashTableIter' undeclared (first use in this function)
utils.c:321: error: expected ';' before 'iter'
utils.c:322: warning: ISO C90 forbids mixed declarations and code
utils.c:327: error: 'iter' undeclared (first use in this function)
gmake[1]: *** [utils.lo] Error 1
gmake[1]: Leaving directory `/prog/Pacemaker-1-1-0/pengine'
这个问题怎么解决那

论坛徽章:
0
发表于 2012-03-22 13:38 |显示全部楼层
./autogen.sh && ./configure --prefix=$PREFIX --with-lcrso-dir=$LCRSODIR

试试这个?

论坛徽章:
0
发表于 2012-03-23 17:09 |显示全部楼层
回复 1# mengchang


    其实--with-lcrso-dir=/usr/libexec/lcrso选项是你安装了corosync才会使用到的。
pacemaker支持heartbeat、corosync和openais实现心跳通信,在确定你安装heartbeat成功的前提先,你查看CFLAGS和LDFLAGS是否包含了heartbeat的include和lib库文件的具体路径,其次查看是否调整了lib库文件的路径
如何还安装不成功的话,建议换了版本,因为现在heartbeat的部分组件和pacemaker已经加入到了RHCS里边,版本问题有时候会给你带来困扰。

论坛徽章:
0
发表于 2012-03-26 11:34 |显示全部楼层
恩,我换了版本后问题解决了,不过我通过这个实验发现从他们官网下的东西貌似不怎么好用

论坛徽章:
0
发表于 2012-03-26 11:34 |显示全部楼层
谢谢你们的帮助

论坛徽章:
0
发表于 2012-03-26 13:36 |显示全部楼层
现在这个HA项目版本之间有些混乱,源码安装太坑爹了,建议用centos6或者类似版本,里面带了这些软件,直接yum一键安装就好!

论坛徽章:
0
发表于 2012-03-26 13:45 |显示全部楼层
恩,我看了你的一个ppt,用和他类似的版本做的,安装好了,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP