Chinaunix首页 | 论坛 | 博客
  • 博客访问: 572548
  • 博文数量: 111
  • 博客积分: 3478
  • 博客等级: 中校
  • 技术积分: 1327
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-28 22:37
文章分类

全部博文(111)

文章存档

2013年(4)

2012年(57)

2011年(15)

2010年(7)

2009年(28)

分类: LINUX

2012-03-19 17:44:00

heartbeat版本:
Heartbeat-3-0-7e3a82377fa8.tar.bz2
编译安装报错:
configure: error: Core development headers were not found
 
解决办法:安装glue
到官网下载glue:
tar -jxvf Reusable-Cluster-Components-glue--glue-1.0.9.tar.bz2
cd Reusable-Cluster-Components-glue--glue-1.0.9
autogen.sh  && ./configure  && make && make install
 
 
tar -jxvf Heartbeat-3-0-7e3a82377fa8.tar.bz2
cd Heartbeat-3-0-7e3a82377fa8
./bootstrap && ./ConfigureMe ./configure && make && make install && echo "ok"
 
如果要指定安装目录的话采取非默认的可以用下边的方法:
export PREFIX=/usr/local/heartbeat
export LCRSODIR=$PREFIX/libexec/lcrso
export CLUSTER_USER=hacluster
export CLUSTER_GROUP=haclient
cd  Reusable-Cluster-Components-glue--glue-1.0.9
 ./autogen.sh && ./configure --prefix=$PREFIX && make && make install && echo "ok,come on"
cd ../Heartbeat-3-0-7e3a82377fa8
./bootstrap && ./configure  --prefix=$PREFIX  --with-lcrso-dir=/usr/libexec/lcrso(lcrso由openais提供,lcrso在哪里可以用find找一下一般在/usr/libexec/下)
  && make && make instll  && echo "OK"

(Heartbeat,Reusable-Cluster最好装在一个目录,如果heartbeat为3.0.4那么编译则有所不同:

如果是glue插件的安装则用下边指令安装:

./configure --prefix=/usr/local/heartbeat  CFLAGES=-I/usr/local/heartbeat/include  LDFLAGS=-L/usr/local/heartbeat/lib

heartbeat安装则要用下边的指令:

./configure --prefix=/usr/local/heartbeat  CFLAGES=-I/usr/local/heartbeat/include  LDFLAGS=-L/usr/local/heartbeat/lib,不然上边core 文件丢失的问题仍然不能解决)

遇到这个出错:
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
解决办法:
到/proc/heartbeat/include/heartbeak/glue_config.h文件中把第50行,第105行的内容删除即可,注意对文件修改前把文件备份下
阅读(8745) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~