做个高可用群集真的不容易,最近想折腾一下高可用群集安装heartbeat就折腾了一天,源码安装这玩意真心不容易。下面记录一下安装heartbeat中可能出现的错误为以后解决提供指导,也给需要的人提供方便。
首先为了方便大家先贴出依赖的包,这样大家可以一次安装成功。
环境如下:
linux版本:基于x86-64的centos7.0
heartbeat版本:3-0-958ellbe8686
-
yum install -y libtool-ltdl-devel glib2-devel libxml2-devel libxml2 bzip2-devel e2fsprogs-devel libuuid-devel libxslt-devel asciidoc docbook-style-xsl libnet
源码安装heartbeat之前首先得源码安装glue。
下载glue: />
进入源码目录安装:./autogen.sh
生成配置文件:./configure
编译安装:make && make install
安装heartbeat:
下载heartbeat: />
进入源码目录生成配置文件:./ConfigureMe configure --disable-swig --disable-snmp-subagent
编译安装:make && make install
没有按照上述操作可能遇到的错误:
1、
-
libtoolize: putting libltdl files in `libltdl'.
-
libtoolize: `COPYING.LIB' not found in `/usr/share/libtool/libltdl
-
./bootstrap exiting due to error (sorry!).
解决办法:
-
yum install libtool-ltdl-devel
2、
-
checking heartbeat/glue_config.h usability... no
-
checking heartbeat/glue_config.h presence... no
-
checking for heartbeat/glue_config.h... no
-
configure: error: in `/usr/local/heartbeat':
-
configure: error: Core development headers were not found
-
See `config.log' for more details
-
-
./bootstrap exiting due to error (sorry!).
解决:
安装glue
3、
-
configure: error: You need glib2-devel installed in order to build cluster-glue
解决:
-
yum install -y glib2-devel
4、
-
checking for special libxml2 includes... configure: error: libxml2 config not found
解决:
-
yum install libxml2 libxml2-devel
5、
-
configure: error: BZ2 Development headers not found
解决:
-
yum install -y bzip2-devel
6、
-
./.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
解决:
-
yum install e2fsprogs-devel libuuid-devel
7、
-
--xinclude \
-
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl heartbeat.xml
-
gmake[1]: --xinclude: Command not found
-
gmake[1]: *** [heartbeat.8] Error 127
-
gmake[1]: Leaving directory `/usr/local/heartbeat/doc
解决:
-
yum -y install libxslt-devel
8、
-
make[2]: a2x: Command not found
解决:
9、
-
--xinclude \
-
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl heartbeat.xml
-
error : Operation in progress
-
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
-
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
-
gmake[1]: *** [heartbeat.8] Error 4
-
gmake[1]: Leaving directory `/usr/local/heartbeat/doc
解决:
-
yum -y install docbook-style-xsl
目前做过的就遇到如上这些问题,大家如有其它问题欢迎补充我尽力解决。
阅读(5280) | 评论(0) | 转发(0) |