安装heartbeat-heartbeat

简介:

压缩包下载地址http://www.linux-ha.org/wiki/Downloads

[root@localhost src]# ll

total 1952

-rw-r--r--.  1 root root 551953 Dec  8 09:29 958e11be8686.tar.bz2

-rw-r--r--.  1 root root 461005 Dec  8 02:50 glue-1.0.8.tar.bz2

-rw-r--r--.  1 root root 165272 Dec  8 06:30 libtool-ltdl-devel-2.2.6-15.5.el6.x86_64.rpm

drwxr-xr-x.  9 1001 1001   4096 Dec  8 02:41 nginx-1.6.3

-rw-r--r--.  1 root root 805253 Dec  8 02:38 nginx-1.6.3.tar.gz

drwxr-xr-x. 11 root root   4096 Dec  8 06:51 Reusable-Cluster-Components-glue--glue-1.0.8

[root@localhost src]# tar -jxvf 958e11be8686.tar.bz2

[root@localhost src]# ll

total 1956

-rw-r--r--.  1 root root 551953 Dec  8 09:29 958e11be8686.tar.bz2

-rw-r--r--.  1 root root 461005 Dec  8 02:50 glue-1.0.8.tar.bz2

drwxr-xr-x. 18 root root   4096 Dec  8 09:29 Heartbeat-3-0-958e11be8686

-rw-r--r--.  1 root root 165272 Dec  8 06:30 libtool-ltdl-devel-2.2.6-15.5.el6.x86_64.rpm

drwxr-xr-x.  9 1001 1001   4096 Dec  8 02:41 nginx-1.6.3

-rw-r--r--.  1 root root 805253 Dec  8 02:38 nginx-1.6.3.tar.gz

drwxr-xr-x. 11 root root   4096 Dec  8 06:51 Reusable-Cluster-Components-glue--glue-1.0.8

[root@localhost src]# cd Heartbeat-3-0-958e11be8686/

[root@localhost Heartbeat-3-0-958e11be8686]# ll

total 240

-rw-r--r--. 1 root root  1217 Feb 10  2015 acinclude.m4

-rwxr-xr-x. 1 root root    73 Feb 10  2015 autogen.sh

-rw-r--r--. 1 root root 15202 Feb 10  2015 beam.tcl

-rwxr-xr-x. 1 root root  6472 Feb 10  2015 bootstrap

drwxr-xr-x. 2 root root  4096 Dec  8 09:29 buildtools

-rw-r--r--. 1 root root 16269 Feb 10  2015 c-config-i686-pc-linux-gnu.tcl

drwxr-xr-x. 2 root root  4096 Dec  8 09:29 config

-rw-r--r--. 1 root root 74996 Feb 10  2015 configure.ac

-rwxr-xr-x. 1 root root  8369 Feb 10  2015 ConfigureMe

drwxr-xr-x. 5 root root  4096 Dec  8 09:29 contrib

drwxr-xr-x. 2 root root  4096 Dec  8 09:29 cts

drwxr-xr-x. 4 root root  4096 Dec  8 09:29 debian

drwxr-xr-x. 2 root root  4096 Dec  8 09:29 doc

-rw-r--r--. 1 root root  1465 Feb 10  2015 GNUmakefile

drwxr-xr-x. 7 root root  4096 Dec  8 09:29 heartbeat

-rw-r--r--. 1 root root 10787 Feb 10  2015 heartbeat-fedora.spec

-rw-r--r--. 1 root root 13397 Feb 10  2015 heartbeat-suse.spec

drwxr-xr-x. 4 root root  4096 Dec  8 09:29 include

drwxr-xr-x. 7 root root  4096 Dec  8 09:29 lib

-rw-r--r--. 1 root root  3691 Feb 10  2015 Makefile.am

drwxr-xr-x. 4 root root  4096 Dec  8 09:29 membership

drwxr-xr-x. 3 root root  4096 Dec  8 09:29 pkg

drwxr-xr-x. 3 root root  4096 Dec  8 09:29 port

-rw-r--r--. 1 root root   301 Feb 10  2015 README.in

drwxr-xr-x. 2 root root  4096 Dec  8 09:29 replace

drwxr-xr-x. 3 root root  4096 Dec  8 09:29 resources

drwxr-xr-x. 3 root root  4096 Dec  8 09:29 telecom

drwxr-xr-x. 2 root root  4096 Dec  8 09:29 tools

[root@localhost Heartbeat-3-0-958e11be8686]# ./bootstrap

libtoolize: You should add the contents of the following files to `aclocal.m4':

libtoolize:   `libltdl/m4/argz.m4'

libtoolize: or else add `AC_CONFIG_MACRO_DIR([libltdl/m4])' to configure.ac.

libtoolize: Remember to add `LTDL_INIT' to configure.ac.

libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.ac'.

libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in configure.ac.

libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

aclocal

automake --add-missing --include-deps --copy

configure.ac:260: installing `./compile'

configure.ac:15: installing `./config.guess'

configure.ac:15: installing `./config.sub'

configure.ac:44: installing `./install-sh'

configure.ac:44: installing `./missing'

buildtools/Makefile.am: installing `./depcomp'

cts/Makefile.am:24: installing `./py-compile'

autoconf

Now run ./configure.

[root@localhost Heartbeat-3-0-958e11be8686]# ./configure

checking for unistd.h... yes

checking heartbeat/glue_config.h usability... yes

checking heartbeat/glue_config.h presence... yes

checking for heartbeat/glue_config.h... yes

checking glue_config.h usability... no

checking glue_config.h presence... no

checking for glue_config.h... no

configure: error: in `/usr/local/src/Heartbeat-3-0-958e11be8686':

configure: error: Core development headers were not found

See `config.log' for more details.

由于报错,执行下面

[root@localhost Heartbeat-3-0-958e11be8686]# ./ConfigureMe configure

.......................

ement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror "

  Mangled CFLAGS           = "-g -O2  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror  -ggdb3 -funsigned-char"

  Libraries                = "-lbz2 -lz -lc -luuid -lrt -ldl  -lltdl"

  RPATH enabled            = "no"

  Distro-style RPMs        = "no"

  

Note: If you use the 'make install' method for installation you

also need to adjust '/etc/passwd' and '/etc/group' manually.

[root@localhost Heartbeat-3-0-958e11be8686]# make

ad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 -funsigned-char -MT client_lib.lo -MD -MP -MF .deps/client_lib.Tpo -c client_lib.c  -fPIC -DPIC -o .libs/client_lib.o

cc1: warnings being treated as errors

client_lib.c: In function ?.b_api_signon?.

client_lib.c:349: error: implicit declaration of function ?.olower?

gmake[2]: *** [client_lib.lo] Error 1

gmake[2]: Leaving directory `/usr/local/src/Heartbeat-3-0-958e11be8686/lib/hbclient'

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

gmake[1]: Leaving directory `/usr/local/src/Heartbeat-3-0-958e11be8686/lib'

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

解决办法

/usr/local/src/Heartbeat-3-0-958e11be8686/lib/hbclient里的makefile中的所有-Werror删除

详情可参考http://www.xue163.com/328/1654/3281715.html,感谢这位作者的提供,终于帮助我编译成功了。

[root@localhost hbclient]# make install



本文转自aaa超超aaa 51CTO博客,原文链接:http://blog.51cto.com/10983441/1731990

相关文章
|
Linux 网络协议
|
监控 应用服务中间件 数据库
|
监控 应用服务中间件 Python
|
监控 Linux Shell