CentOS5下编译安装Heartbeat3
来源:互联网 发布:linux内核进程调度 编辑:程序博客网 时间:2024/05/01 13:03
安装cluster glue
安装heartbeat之前需要安装glue。
yum install autoconf automake libtool glib2-devel libxml2-devel bzip2-devel e2fsprogs-devel libxslt-devel
groupadd haclientuseradd -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
补充:
sudo yum install glib2-devel libxml2 libxml2-devel bz* docbook-style-xsl
useradd -g haclient hacluster -u 1002
安装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
安装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
除错
1、错误:glue_config.h:99:1: error: “HA_HBCONF_DIR” redefined
解决方法:http://www.centos.bz/2012/02/glue_config-h991-error-ha_hbconf_dir-redefined/
删除/usr/local/heartbeat/include/heartbeat/glue_config.h的最后一行:#define HA_HBCONF_DIR "/usr/local/heartbeat/etc/ha.d/"
2、错误configure.ac:9: error: Autoconf version 2.63 or higher is required
解决方法:http://www.centos.bz/2012/03/configure-ac9-error-autoconf-version-2-63-or-higher-is-required/
3、错误configure.ac:63: require Automake 1.10.1, but have 1.9.6
解决方法:http://www.centos.bz/2012/03/configure-ac63-require-automake-1-10-1-but-have-1-9-6/
4,错误error while loading shared libraries: libplumb.so.2 #sudo echo "/lib" >> /etc/ld.so.conf #ldconfig
centos下升级autoconf
#whereis autoconf #查看autoconf的路径
#rpm -qf /usr/bin/autoconf #查看autoconf的版本
#rpm -e --nodeps autoconf-2.59-12 #卸载原来版本
#tar -zxf autoconf-2.65.tar.gz
#cd autoconf-2.65
#./configure --prefix=/usr
#make && make install
#rpm -qf /usr/bin/autoconf
#rpm -qa | grep autoconf
#/usr/bin/autoconf --help
#/usr/bin/autoconf -V #查看是否安装成功
更新Automake方法同上
- CentOS5下编译安装Heartbeat3
- Heartbeat3安装
- CentOS5下编译安装apache+php
- Centos5.4下编译安装php5.4.0
- centos5编译安装mangos
- CentOS5.3下源码编译安装XEN3.4.2虚拟机
- CentOS5.8下编译安装3.X版本内核
- Heartbeat3.0.7安装配置
- centos5 下安装oracle10g
- centos5下 redmine安装
- centos5下安装mongodb
- linux 内核编译安装(CentOS5)
- CentOS5 编译安装LNMP步骤
- heartbeat3.0安装和配置
- 在Fedora11上编译Heartbeat3.0.3到非默认安装路径
- CentOS5.2下安装JDK
- CentOS5.2下安装tomcat
- CentOS5.2下安装oracle10g
- Python中的matplotlib用法(转载)
- MAC 设置环境变量path的几种方法
- html5中的number
- Convert Sorted List to Binary Search Tree
- Java的网络编程初识
- CentOS5下编译安装Heartbeat3
- Linux rpm 命令参数使用详解[介绍和应用]
- mac下使用eclipse导入项目出错mvn命令找不到
- 感觉好看的网站
- 关闭文件流
- input file控件限制上传文件类型
- Oracle常用命令笔记
- ios7 屏幕高度,状态栏高度,标签栏尺寸等获取方式
- Eclipse插件EasyExplore打开文件所在目录