关于Heartbeat-3-0安装错误

时间:2021-08-22 03:15:18

由于Heartbeat-3-0改变较大,安装一路坎坎坷坷,经过认真的观测和细心的琢磨,最终还是采用了消极的解决方法

Heartbeat有主和备两台
系统一模一样安装的,但是主在Heartbeat bootstrap的时候总是过不去
错误如下

./bootstrap

Autoconf package autoconf found.
Automake package automake-1.5 found.
Libtool package libtool found.
aclocal-1.5
autoheader
configure.ac:32: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
../../lib/autoconf/general.m4:196: AC_FOREACH is expanded from…
aclocal.m4:190: AM_CONFIG_HEADER is expanded from…
configure.ac:32: the top level
configure.ac:483: warning: AC_PROG_LEX invoked multiple times
aclocal.m4:751: AM_PROG_LEX is expanded from…
configure.ac:483: the top level
../../lib/autoconf/programs.m4:813: AC_DECL_YYTEXT is expanded from…
configure.ac:2437: warning: do not use m4_regexp: use regexp or m4_bregexp
aclocal.m4:236: _AM_DIRNAME is expanded from…
../../lib/autoconf/status.m4:1592: _AC_OUTPUT_MAIN_LOOP is expanded from…
configure.ac:2437: the top level
libtoolize –ltdl –force –copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, .'.
libtoolize: copying file
./ltmain.sh’
libtoolize: putting auxiliary files in .'.
libtoolize: copying file
libltdl/config/compile’
libtoolize: copying file libltdl/config/config.guess'
。。。。。。
aclocal-1.5
automake-1.5 --add-missing --include-deps --copy
configure.ac: 482:
AC_DECL_YYTEXT’ is covered by `AM_PROG_LEX’
contrib/Makefile.am:23: SUBDIRS was already defined in condition TRUE, which implies condition BUILD_DRBD_OUTDATE_PEER_TRUE

SUBDIRS (User, where = 23) +=
{
TRUE => ipfail mlock
}
lib/plugins/HBcomm/Makefile.am:51: variable OPENAIS' not defined
lib/plugins/HBcomm/Makefile.am:51: variable
OPENAIS’ not defined
replace/Makefile.am:29: required file replace/[lt__dirent].c' not found
replace/Makefile.am:29: required file
replace/[lt__strl].c’ not found
replace/Makefile.am:29: required file `replace/[argz].c’ not found

./bootstrap exiting due to error (sorry!).

最终发现bootstrap的时候调用./autoheader 出的错
这个autoheader是用perl写的,笔者对perl比较陌生,所以排查不下了。
然后再仔细查看错误
configure.ac:32: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
../../lib/autoconf/general.m4:196: AC_FOREACH is expanded from…
aclocal.m4:190: AM_CONFIG_HEADER is expanded from…
configure.ac:32: the top level
configure.ac:483: warning: AC_PROG_LEX invoked multiple times
aclocal.m4:751: AM_PROG_LEX is expanded from…
configure.ac:483: the top level
../../lib/autoconf/programs.m4:813: AC_DECL_YYTEXT is expanded from…
configure.ac:2437: warning: do not use m4_regexp: use regexp or m4_bregexp
aclocal.m4:236: _AM_DIRNAME is expanded from…
../../lib/autoconf/status.m4:1592: _AC_OUTPUT_MAIN_LOOP is expanded from…
在如上错误中configure.ac:32: the top level,查看AM_CONFIG_HEADER(include/config.h include/hb_config.h)
发现include目录下确实没有这两个头文件
再去另一台编译过去的机器上找到了这两个文件,索性直接吧configure好的sec code直接拷贝到过不去的机器上!
后续安装没出现错误。

这个问题没解决的了,待后续再研究,此处小计一下防止忘记。

#

迷途小运维原创
作者:JOHN
转载请注明出处