Compile and install Heartbeat in CentOS

Source: Internet
Author: User
Tags automake
You must install glue before installing heterglue to install heartbeat. Yuminstallautoconfautomakelibtoolglib2-devellibxml2-develbzip2-devele2fsprogs-devellibxslt-develgroupaddhaclientuseradd-ghaclienthaclustercd/tmpwget install cluster glue

Install glue before installing heartbeat.


Yum install autoconf automake libtool glib2-devel libxml2-devel bzip2-devel e2fsprogs-devel libxslt-devel
Groupadd haclient
Useradd-g haclient hacluster
Cd/tmp
Wget http://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2
Tar xjf glue-1.0.9.tar.bz2
Cd Reusable-Cluster-Components-glue -- glue-1.0.9
./Autogen. sh
./Configure -- prefix =/usr/local/heartbeat
Make & make install

Install Resource Agents
Cd/tmp
Wget -- no-check-certificate https://github.com/ClusterLabs/resource-agents/tarball/v3.9.2
Tar xzf v3.9.2
Cd ClusterLabs-resource-agents-b735277/
./Autogen. sh
Export CFLAGS = "$ CFLAGS-I/usr/local/heartbeat/include-L/usr/local/heartbeat/lib"
./Configure -- prefix =/usr/local/heartbeat
Ln-s/usr/local/heartbeat/lib/*/lib/
Make & make install

Install Heartbeat
Cd/tmp
Wget http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/7e3a82377fa8.tar.bz2
Tar xjf 7e3a82377fa8.tar.bz2
Cd Heartbeat-3-0-7e3a82377fa8/
./Bootstrap
Export CFLAGS = "$ CFLAGS-I/usr/local/heartbeat/include-L/usr/local/heartbeat/lib"
./Configure -- prefix =/usr/local/heartbeat
Make & make install
Cp doc/ha. cf/usr/local/heartbeat/etc/ha. d/
Cp doc/haresources/usr/local/heartbeat/etc/ha. d/
Cp doc/authkeys/usr/local/heartbeat/etc/ha. d/
Cp heartbeat/init. d/heartbeat/etc/rc. d/init. d/
Chkconfig -- add heartbeat
Chkconfig heartbeat on
Chmod 600/usr/local/heartbeat/etc/ha. d/authkeys
Sed-I's #/usr/lib/ocf #/usr/local/heartbeat/usr/lib/ocf # g'/usr/local/heartbeat/etc/ha. d/shellfuncs
Sed-I's #/usr/lib/ocf #/usr/local/heartbeat/usr/lib/ocf # g'/usr/local/heartbeat/usr/lib/ocf /lib // heartbeat/ocf-shellfuncs
Sed-I's #/usr/lib/ocf #/usr/local/heartbeat/usr/lib/ocf # g'/usr/local/heartbeat/etc/ha. d/resource. d // hto-mapfuncs

Debugging

1. error: glue_config.h: 99: 1: error: "HA_HBCONF_DIR" redefined
Solution: http://www.centos.bz/2012/02/glue_config-h991-error-ha_hbconf_dir-redefined/
2. the configure. ac: 9: error: Autoconf version 2.63 or higher is required.
Solution: http://www.centos.bz/2012/03/configure-ac9-error-autoconf-version-2-63-or-higher-is-required/
3. error configure. ac: 63: require Automake 1.10.1, but have 1.9.6
Solution: http://www.centos.bz/2012/03/configure-ac63-require-automake-1-10-1-but-have-1-9-6/


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.