ClusterLabs-resource-agents安装过程中可能碰见的问题与解决办法

IPv6addr.c:106:31: error: clplumbing/cl_log.h: No such file or directory

cc1: warnings being treated as errors

IPv6addr.c: In function ‘main’:

IPv6addr.c:207: error: implicit declaration of function ‘cl_log_set_entity’

IPv6addr.c:207: error: nested extern declaration of ‘cl_log_set_entity’

IPv6addr.c:208: error: implicit declaration of function ‘cl_log_set_facility’

IPv6addr.c:208: error: nested extern declaration of ‘cl_log_set_facility’

IPv6addr.c:219: error: implicit declaration of function ‘cl_log’

IPv6addr.c:219: error: nested extern declaration of ‘cl_log’

IPv6addr.c: In function ‘scan_if’:

IPv6addr.c:543: error: ‘gboolean’ undeclared (first use in this function)

IPv6addr.c:543: error: (Each undeclared identifier is reported only once

IPv6addr.c:543: error: for each function it appears in.)

IPv6addr.c:543: error: expected ‘;’ before ‘same’

IPv6addr.c:601: error: ‘same’ undeclared (first use in this function)

IPv6addr.c:601: error: ‘TRUE’ undeclared (first use in this function)

IPv6addr.c:605: error: ‘FALSE’ undeclared (first use in this function)

IPv6addr.c: In function ‘write_pid_file’:

IPv6addr.c:884: error: ‘ULONG_MAX’ undeclared (first use in this function)

gmake[2]: *** [IPv6addr.o] Error 1

gmake[2]: Leaving directory `/root/ha/ClusterLabs-resource-agents-b735277/heartbeat'

gmake[1]: *** [all-recursive] Error 1

gmake[1]: Leaving directory `/root/ha/ClusterLabs-resource-agents-b735277'

make: *** [all] Error 2


解决办法:

./configure --prefix=/root/ha CFLAGS=-I/root/ha/include LDFLAGS=-L/root/ha/lib (/prog/heartbeat是heartbeat的安装目录)

还有一种情况就是上面这种解决办法也没法解决,其实可以回过头来仔细看错误信息

“IPv6addr.c:106:31: error: clplumbing/cl_log.h: No such file or directory”

你通过“find / -name "cl_log.h"”

可以得知此文件在你的Reusable-Cluster-Components-glue--glue-1.0.9文件夹里面,从这里也就可以得知是你没有指定或者没有mkdir一个Heartbeat安装文件夹(/usr/local/ha)。


../heartbeat/IPv6addr: error while loading shared libraries: libplumb.so.2: cannot open shared object file: No such file or directory
gmake[1]: *** [metadata-IPv6addr.xml] Error 127
rm metadata-LVM.xml metadata-mysql-proxy.xml metadata-nfsserver.xml metadata-Pure-FTPd.xml metadata-fio.xml metadata-sfex.xml metadata-SAPDatabase.xml metadata-exportfs.xml metadata-ManageRAID.xml metadata-ids.xml metadata-oracle.xml metadata-rsyncd.xml metadata-CTDB.xml metadata-iSCSILogicalUnit.xml metadata-nginx.xml metadata-Xen.xml metadata-SAPInstance.xml metadata-tomcat.xml metadata-IPv6addr.xml metadata-pgsql.xml metadata-Xinetd.xml metadata-Route.xml metadata-ICP.xml metadata-pingd.xml metadata-MailTo.xml metadata-SysInfo.xml metadata-Squid.xml metadata-IPaddr.xml metadata-Delay.xml metadata-SendArp.xml metadata-VirtualDomain.xml metadata-postfix.xml metadata-jboss.xml metadata-db2.xml metadata-AoEtarget.xml metadata-Stateful.xml metadata-Dummy.xml metadata-scsi2reservation.xml metadata-ServeRAID.xml metadata-Evmsd.xml metadata-eDir88.xml metadata-VIPArip.xml metadata-IPsrcaddr.xml metadata-syslog-ng.xml metadata-WinPopup.xml metadata-ClusterMon.xml metadata-Filesystem.xml metadata-SphinxSearchDaemon.xml metadata-WAS6.xml metadata-iscsi.xml metadata-apache.xml metadata-AudibleAlarm.xml metadata-conntrackd.xml metadata-proftpd.xml metadata-portblock.xml metadata-LinuxSCSI.xml metadata-vmware.xml metadata-EvmsSCC.xml metadata-IPaddr2.xml metadata-oralsnr.xml metadata-mysql.xml metadata-Raid1.xml metadata-WAS.xml metadata-drbd.xml metadata-ManageVE.xml metadata-iSCSITarget.xml metadata-anything.xml
gmake[1]: Leaving directory `/prog/heartbeat/agents/doc'
make: *** [all-recursive] Error 1
解决办法:这个是由于缺乏libplumb.so.2引起的,到网上libplumb.so.2下载包含这个文件的rpm即可,在本次方案中用的是libheartbeat2-2.99.2-6.1.i386.rpm

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值