编译安装Heartbeat常见错误
编译安装Heartbeat常见错误
天下杰论 发表于4年前
编译安装Heartbeat常见错误
  • 发表于 4年前
  • 阅读 3462
  • 收藏 4
  • 点赞 0
  • 评论 0

【腾讯云】买域名送云解析+SSL证书+建站!>>>   

-----------那些需要升级包还有少包的错误就不写了---------- 1.
Reusable-Cluster-Components-glue-glue-1.0.9
./autogen.sh
报告如下错误
configure.ac:71: error: possibly undefined macro:AC_LIBTOOL_DLOPEN
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:72: error: possiblyundefinedmacro:AC_LIBLTDL_CONVENIENCE
configure.ac:73: error: possibly undefined macro: AC_PROG_LIBTOOL
./autogen.sh exiting due to error (sorry!).
解决办法是,在执行一次./autogen.sh 即可(不清楚)
2.编译heartbeat时报错:
configure: error: Core development headers were not found
See `config.log'' for more details.
./bootstrap exiting due to error (sorry!).
解决:这需要中间层包glue,
3.出现configure.in:required file './install-sh' not found 求大神
这个把 automake 下面的 install-sh 拷贝到root 目录下
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。make时出现
lib/pils/.libs/libpils.so -lbz2 -lxml2 -lc -lrt -ldl -lglib-2.0 -lltdl ./.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 解决办法:yum install e2fsprogs-devel libuuid-devel
6../configure时出现configure: error: BZ2 libraries not found
解决办法:yum -y install bzip2-devel glib2-devel
7编译安装3.0.7,make时出错了
ucast.c: 在函数‘HB_make_send_sock’中:
ucast.c:468: 错误:与‘i’类型冲突
ucast.c:465: 附注:‘i’的上一个声明在此
ucast.c:502: 错误:在非结构或联合中请求成员‘ifr_ifrn’
ucast.c:508: 错误:在非结构或联合中请求成员‘ifr_ifrn’
ucast.c:513: 错误:在非结构或联合中请求成员‘ifr_ifrn’
gmake[4]: *** [ucast.lo] 错误 1
gmake[4]: Leaving directory `/usr/local/src/Heartbeat-3-0-7e3a82377fa8/lib/plugins/HBcomm'
gmake[3]: *** [all-recursive] 错误 1
gmake[3]: Leaving directory `/usr/local/src/Heartbeat-3-0-7e3a82377fa8/lib/plugins/HBcomm'
gmake[2]: *** [all-recursive] 错误 1
gmake[2]: Leaving directory `/usr/local/src/Heartbeat-3-0-7e3a82377fa8/lib/plugins'
gmake[1]: *** [all-recursive] 错误 1
gmake[1]: Leaving directory `/usr/local/src/Heartbeat-3-0-7e3a82377fa8/lib'
make: *** [all-recursive] 错误 1
解决方法:Heartbeat-3-0-7e3a82377fa8/lib/plugins/HBcomm/ucast.c
这个文件貌似有问题,删除468行int i = 1;应该就能make了。(这个真心坑爹)
8. 下面是一些要安装的 包 应该比较全了
ftp://ftp.gnu.org/pub/gnu/automake/automake-1.14.tar.gz
ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.69.tar.gz
http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/7e3a82377fa8.tar.bz2
http://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2
https://github.com/ClusterLabs/resource-agents/tarball/v3.9.2
yum install bzip2-devel
yum install glib2-devel
yum install libxml2 libxml2-devel
yum install gcc-c++
yum install libtool-ltdl-devel
yum install libxslt-devel

  • 打赏
  • 点赞
  • 收藏
  • 分享
共有 人打赏支持
粉丝 53
博文 397
码字总数 23359
×
天下杰论
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: