Chinaunix首页 | 论坛 | 博客
  • 博客访问: 274040
  • 博文数量: 36
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 411
  • 用 户 组: 普通用户
  • 注册时间: 2015-05-04 22:05
个人简介

追求永无止境

文章分类
文章存档

2016年(3)

2015年(33)

分类: LINUX

2015-08-20 12:10:55

        做个高可用群集真的不容易,最近想折腾一下高可用群集安装heartbeat就折腾了一天,源码安装这玩意真心不容易。下面记录一下安装heartbeat中可能出现的错误为以后解决提供指导,也给需要的人提供方便。
首先为了方便大家先贴出依赖的包,这样大家可以一次安装成功。
    环境如下:
        linux版本:基于x86-64的centos7.0
        heartbeat版本:3-0-958ellbe8686

点击(此处)折叠或打开

  1. yum install -y libtool-ltdl-devel glib2-devel libxml2-devel libxml2 bzip2-devel e2fsprogs-devel libuuid-devel libxslt-devel asciidoc docbook-style-xsl libnet

源码安装heartbeat之前首先得源码安装glue。
    下载glue: />     进入源码目录安装:./autogen.sh
    生成配置文件:./configure
    编译安装:make && make install
安装heartbeat:
    下载heartbeat: />     进入源码目录生成配置文件:./ConfigureMe configure --disable-swig --disable-snmp-subagent
    编译安装:make && make install

没有按照上述操作可能遇到的错误:
1、

点击(此处)折叠或打开

  1. libtoolize: putting libltdl files in `libltdl'.
  2. libtoolize: `COPYING.LIB' not found in `/usr/share/libtool/libltdl
  3. ./bootstrap exiting due to error (sorry!).

解决办法:

点击(此处)折叠或打开

  1. yum install libtool-ltdl-devel
2、

点击(此处)折叠或打开

  1. checking heartbeat/glue_config.h usability... no
  2. checking heartbeat/glue_config.h presence... no
  3. checking for heartbeat/glue_config.h... no
  4. configure: error: in `/usr/local/heartbeat':
  5. configure: error: Core development headers were not found
  6. See `config.log' for more details

  7. ./bootstrap exiting due to error (sorry!).
解决:
    安装glue
3、

点击(此处)折叠或打开

  1. configure: error: You need glib2-devel installed in order to build cluster-glue
解决:

点击(此处)折叠或打开

  1. yum install -y glib2-devel
4、

点击(此处)折叠或打开

  1. checking for special libxml2 includes... configure: error: libxml2 config not found
解决:

点击(此处)折叠或打开

  1. yum install libxml2 libxml2-devel
5、

点击(此处)折叠或打开

  1. configure: error: BZ2 Development headers not found
解决:

点击(此处)折叠或打开

  1. yum install -y bzip2-devel
6、

点击(此处)折叠或打开

  1. ./.libs/libplumb.so: undefined reference to `uuid_parse’
  2.  ./.libs/libplumb.so: undefined reference to `uuid_generate’
  3.  ./.libs/libplumb.so: undefined reference to `uuid_copy’
  4.  ./.libs/libplumb.so: undefined reference to `uuid_is_null’
  5.  ./.libs/libplumb.so: undefined reference to `uuid_unparse’
  6.  ./.libs/libplumb.so: undefined reference to `uuid_clear’
  7.  ./.libs/libplumb.so: undefined reference to `uuid_compare’
  8. collect2: ld returned 1 exit status

     gmake[2]: *** [ipctest] Error 1

     gmake[2]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.6/lib/clplumbing’

     gmake[1]: *** [all-recursive] Error 1

     gmake[1]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.6/lib’

     make: *** [all-recursive] Error 1

    解决:

点击(此处)折叠或打开

  1. yum install e2fsprogs-devel libuuid-devel

7、

点击(此处)折叠或打开

  1. --xinclude \
  2. http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl heartbeat.xml
  3. gmake[1]: --xinclude: Command not found
  4. gmake[1]: *** [heartbeat.8] Error 127
  5. gmake[1]: Leaving directory `/usr/local/heartbeat/doc
    解决:

点击(此处)折叠或打开

  1. yum -y install libxslt-devel
8、

点击(此处)折叠或打开

  1. make[2]: a2x: Command not found

解决:

点击(此处)折叠或打开

  1. yum install -y asciidoc

9、

点击(此处)折叠或打开

  1. --xinclude \
  2. http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl heartbeat.xml
  3. error : Operation in progress
  4. warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
  5. cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
  6. gmake[1]: *** [heartbeat.8] Error 4
  7. gmake[1]: Leaving directory `/usr/local/heartbeat/doc
解决:

点击(此处)折叠或打开

  1. yum -y install docbook-style-xsl
目前做过的就遇到如上这些问题,大家如有其它问题欢迎补充我尽力解决。




阅读(5280) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~