Centos 6.0下编译安装pacemaker-mgmt

1.准备工作
1.1 确保以下包都已安装

我使用yum base库测试安装成功

yum install perl-TimeDate OpenIPMI-libs lm_sensors libxslt libibverbs librdmacm pkgconfig libtool intltool gettext-devel glib2-devel python-devel libxml2-devel pam-devel ncurses-devel pygtk2  libtool-ltdl libqb clusterlib libtool-ltdl-devel swig gnutls-devel

1.2确保HA包都已安装

我的HA包是通过epel库安装的详见 CentOS6.0下安装heartbeat 3.x,通过yum安装并检测相应软件包

yum install --enablerepo=epel resource-agents clusterlib cluster-glue-libs-devel pacemaker-libs-devel pacemaker pacemaker-cluster-libs heartbeat heartbeat-devel

2.下载源码压缩包
2.1下载压缩包
进入网址    http://hg.clusterlabs.org/pacemaker/pygui/tags  选择最新的pacemaker-mgmt版本。我下载的是pacemaker-mgmt-2.1.0
 wget http://hg.clusterlabs.org/pacemaker/pygui/archive/c08b84a8203f.tar.bz2

2.2解压压缩包
解压到当前文件夹下
tar -xvf Pacemaker-Python-GUI-c08b84a8203f.tar.bz2 

3.编译
3.1第一步
./ConfigureMe configure
3.2第二步
make

出现如下错误2个:


错误一:

cc1: warnings being treated as errors
mgmt_lib.c: In function 'init_mgmt_lib':
mgmt_lib.c:97: warning: implicit declaration of function 'is_heartbeat_cluster'
gmake[2]: *** [libhbmgmt_la-mgmt_lib.lo] Error 1
gmake[2]: Leaving directory `/data0/Pacemaker-Python-GUI-c08b84a8203f/mgmt/daemon'
gmake[1]: *** [all-recursive] Error 1

解决办法:在mgmt/daemon/mgmt_lib.c 文件中加入 #include 继续执行make指令


错误二:

mgmtd.c: 在函数‘register_pid’中:
mgmtd.c:299: 错误:隐式声明函数‘umask’
gmake[2]: *** [mgmtd.o] 错误 1
gmake[2]: Leaving directory `/root/install/Pacemaker-Python-GUI-c08b84a8203f/mgmt/daemon'
gmake[1]: *** [all-recursive] 错误 1
gmake[1]: Leaving directory `/root/install/Pacemaker-Python-GUI-c08b84a8203f/mgmt'
make: *** [all-recursive] 错误 1

解决办法:在mgmt/daemon/mgmtd.c 文件中加入 #include 继续执行make指令

3.3第三步

make install


你可能感兴趣的:(tip,配置)