[root@zhu1 Reusable-Cluster-Components-glue--glue-1.0.9]# yum -y install docbook-style-xsl
[root@zhu1 Reusable-Cluster-Components-glue--glue-1.0.9]# make clean
[root@zhu1 Reusable-Cluster-Components-glue--glue-1.0.9]# make && make install 3)安装Agent
[root@zhu1 LVS]# tar zxvf v3.9.2
[root@zhu1 LVS]# cd ClusterLabs-resource-agents-b735277/
[root@zhu1 ClusterLabs-resource-agents-b735277]# ./autogen.sh
此时提示错误
configure.ac:9: error: Autoconf version 2.63 or higher is required 解决方法如下:
[root@zhu1 ~]# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz
[root@zhu1 ~]# tar zxvf autoconf-2.68.tar.gz
[root@zhu1 ~]# cd autoconf-2.68
[root@zhu1 ~]# ./configure
[root@zhu1 ~]# make && make install 此时再执:
[root@zhu1 ~]# cd ClusterLabs-resource-agents-b735277/
[root@zhu1 ~]# ./autogen.sh
会提示错误
autoreconf: automake failed with exit status: 1 解决方法如下:
wget http://ftp.gnu.org/gnu/automake/automake-1.11.2.tar.gz
tar zxvf automake-1.11.2.tar.gz
cd automake-1.11.2
./configure
make && make install
[root@zhu1 ClusterLabs-resource-agents-b735277]# ./autogen.sh
[root@zhu1 ClusterLabs-resource-agents-b735277]# ./configure
[root@zhu1 ClusterLabs-resource-agents-b735277]# make && make install
会提示错误如下
gmake[2]: *** [metadata-IPv6addr.xml] 错误 127
../heartbeat/IPv6addr: error while loading shared libraries: libplumb.so.2: cannot open shared object file: No such file or directory
gmake[2]: Leaving directory `/root/LVS/ClusterLabs-resource-agents-b735277/doc'
gmake[1]: *** [all-recursive] 错误 1
gmake[1]: Leaving directory `/root/LVS/ClusterLabs-resource-agents-b735277'
make: *** [all] 错误 2 解决方法如下:
[root@zhu1 LVS]# wget http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/7e3a82377fa8.tar.bz2
[root@zhu1 LVS]# tar jxvf 7e3a82377fa8.tar.bz2
[root@zhu1 LVS]# cd Heartbeat-3-0-7e3a82377fa8/
[root@zhu1 Heartbeat-3-0-7e3a82377fa8]# ./bootstrap
[root@zhu1 Heartbeat-3-0-7e3a82377fa8]# ./ConfigureMe configure --prefix=/opt/heartbeat/
[root@zhu1 Heartbeat-3-0-7e3a82377fa8]# make && make install 此时由于安装路径不是采用默认的,而是指定为安装/opt/heartbeat就会出现找不到库文件的问题
In file included from ../include/lha_internal.h:41,
from strlcpy.c:1:
/prog/heartbeat/include/heartbeat/glue_config.h:50:1: error: "HA_SYSCONFDIR" redefined
In file included from ../include/lha_internal.h:38,
from strlcpy.c:1:
../include/config.h:401:1: error: this is the location of the previous definition
In file included from ../include/lha_internal.h:41,
from strlcpy.c:1:
/prog/heartbeat/include/heartbeat/glue_config.h:105:1: error: "HA_HBCONF_DIR" redefined
In file included from ../include/lha_internal.h:38,
from strlcpy.c:1:
../include/config.h:386:1: error: this is the location of the previous definition
gmake[1]: *** [strlcpy.lo] Error 1
gmake[1]: Leaving directory `/prog/heartbeat-3-0-7/replace'
make: *** [all-recursive] Error 1 解决此错误的方法为: 到opt/heartbeat/include/heartbeak/glue_config.h文件中把第50行,第105行的内容删除即可 本次对heartbeat安装了两次,建议安装时采用默认的安装路径。 安装一个插件