Heartbeat is made up of three parts of glue,heartbeat,agents, so we need to install separately, here are some tools that must be installed before installation.
Yum install GCC Flex Bison net-snmp OpenIPMI python
Yum install gcc gcc-c++ autoconf automake libtool glib2-devel libxml2-develbzip2-devel e2fsprogs-devel libxslt-devel libt Ool-ltdl-devel make wget Docbook-dtds docbook-style-xsl
These software to determine has been installed, this will save a lot of trouble, will not report the following error, where Libtool-ltdl-devel is not in the image of the Yum original, you need to download the RPM installation package. http://rpm.pbone.net/index.php3/stat/4/idpl/15990892/dir/scientific_linux_6/com/ Libtool-ltdl-devel-2.2.6-15.5.el6.x86_64.rpm.html
1. Download and install glue.
Download glue:http://hg.linux-ha.org/glue/archive/glue-1.0.8.tar.bz2
Put the package in the/USR/LOCAL/SRC directory, then unzip
[[email protected] src] #tar-jxvf glue-1.0.8.tar.bz2
[[email protected] src] #ll
650) this.width=650; "Name=" image_operate_56251449544875296 "src=" http://s14.sinaimg.cn/mw690/ 003fixzqgy6xbxajdeled&690 "width=" 690 "height=" 101 "alt=" 003fixzqgy6xbxajdeled&690 "/>
In the current directory, a reusable-cluster-components-glue--glue-1.0.8 directory appears, entering this directory
[[email protected] src] #cd reusable-cluster-components-glue--glue-1.0.8
[Email protected] reusable-cluster-components-glue--glue-1.0.8]#./autogen.sh
When the error is translated, you need to install Libtool
[[email protected] reusable-cluster-components-glue--glue-1.0.8] #yum install Libtool
A configure file appears in the current directory
[Email protected] reusable-cluster-components-glue--glue-1.0.8]#./configure
Error
Checking for special libxml2 includes ... configure:error:libxml2 config not found
At this time
[[email protected] reusable-cluster-components-glue--glue-1.0.8] #yum-y install libxml2 libxml2-devel (sometimes libxml2 is already installed by default, just install the second one, both must be installed)
Execute configure again, the error is as follows
Configure:error:BZ2 libraries not found, solution:
Yum-y Install Bzip2-devel Glib2-devel
Executing the Configure file again will not be an error. Execution succeeded as follows
650) this.width=650; "Name=" image_operate_40251449544950078 "src=" http://s8.sinaimg.cn/mw690/ 003fixzqgy6xby94hbpf7&690 "width=" 690 "height=" 257 "alt=" 003fixzqgy6xby94hbpf7&690 "/>
And then
[[email protected] reusable-cluster-components-glue--glue-1.0.8] #make
The error is as follows
GMAKE[1]: Entering directory '/usr/local/src/reusable-cluster-components-glue--glue-1.0.8/libltdl '
GMAKE[1]: * * * No rule to do target ' all '. Stop.
GMAKE[1]: Leaving directory '/usr/local/src/reusable-cluster-components-glue--glue-1.0.8/libltdl '
Make: * * * [all-recursive] Error 1
[[email protected] reusable-cluster-components-glue--glue-1.0.8] #make clean//delete compiled files.
The mistake was reported because
Libtool-ltdl-devel This software is not installed, can go to http://rpm.pbone.net/index.php3/stat/4/idpl/15990892/dir/scientific_linux_6/com/ libtool-ltdl-devel-2.2.6-15.5.el6.x86_64.rpm.html this URL to download its RPM package, this package does not have redundant dependencies, direct RPM-IVH libtool-ltdl-devel-2.2.6-15.5.el6.x86_64.rpm for installation.
at this point, you can put the newly decompressed reusable-cluster-components-glue--glue-1.0.8 Delete, re-unzip, new operation.
Execute make again with the following error
-
/usr/bin/xsltproc \
--xinclude \
http://docbook.sourceforge.net/release/xsl/current/manpages/ Docbook.xsl hb_report.xml
Error:connection refused
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[2]: * * [Hb_report.8] Error 4
Gmake[2]: Leaving directory '/usr/local/src/reusable-cluster-components-glue--glue-1.0.8/doc '
Gmake[1]: * * [all-recursive] Error 1
Gmake[1]: Leaving directory '/usr/local/src/reusable-cluster-components-glue--glue-1.0.8/doc '
Make: * * [all-recursive] Error 1
Workaround yum-y Install docbook* and re-execute configure, re-make this is OK
Install Heartbeat-glue, absolutely complete, own personally operation.