下载源码:
解压:
tar -jxvf 958e11be8686.tar.bz2
编译:
./bootstrap
报错:You must have libtool installed to compile the linux-ha package.
yum install libtool
报错:libtoolize: `COPYING.LIB' not found in `/usr/share/libtool/libltdl'
yum install libtool-ltdl-devel
|
编译成功后提示:Now run ./configure.
./configure
报错:error: Core development headers were not found
./ConfigureMe configure
提示:configure: WARNING: The following recommended components noted earlier are missing:
uuid library We will continue but you may have lost some non-critical functionality. configure: error: The following required components noted earlier are missing: glib2-devel Please supply them and try again.
安装:
yum install uuid libuuid-devel
yum install glib2-devel
|
make
报错:hg: Command not found
没有解决。。。貌似某些文档需要翻墙才能下载
|
另一种安装:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm |
发现无法安装,使用 yum install epel-release
修改:
vi /etc/yum.repos.d/epel.repo
enabled=0
使用:
yum --enablerepo=epel install heartbeat
报错:
http://mirrors.163.com/centos/6/os/x86_64/Packages/PyXML-0.8.4-19.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.163.com'"
重新安装PyXML,yum install PyXML
再使用:yum --enablerepo=epel install heartbeat
|
安装包截图:
安装成功:
Installed:
heartbeat.x86_64 0:3.0.4-2.el6 Dependency Installed: cifs-utils.x86_64 0:4.8.1-19.el6 heartbeat-libs.x86_64 0:3.0.4-2.el6 libtalloc.x86_64 0:2.0.7-2.el6 libtdb.x86_64 0:1.2.10-1.el6 libtevent.x86_64 0:0.9.18-3.el6 quota.x86_64 1:3.17-21.el6_5 resource-agents.x86_64 0:3.9.5-12.el6_6.4 samba-common.x86_64 0:3.6.23-14.el6_6 samba-winbind.x86_64 0:3.6.23-14.el6_6 samba-winbind-clients.x86_64 0:3.6.23-14.el6_6 tcp_wrappers.x86_64 0:7.6-57.el6 Complete! |