進來沒事研究一下Heartbeat,其官方下載網站:http://www.linux-ha.org/wiki/Downloads
目前版本:
ClusterLabs-resource-agents-v3.9.2-0-ge261943.tar.gz
Heartbeat-3-0-7e3a82377fa8.tar.bz2
Pacemaker-1-2-cc0e4d295e29.tar.bz2
Reusable-Cluster-Components-glue--glue-1.0.9.tar.bz2
在安裝過程中遇到各種錯誤,方便網上童靴會遇到和我一樣的問題,我把解決辦法整理如下,也同時希望大家補充:
我用的系統是:
[root@host2 ~]# cat /etc/redhat-release
CentOS release 6.2 (Final)
[root@host2 ~]# uname -a
Linux host2.linuxbrother.com 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
1、libtoolize: `COPYING.LIB' not found in `/usr/share/libtool/libltdl'
解決辦法:
yum -y install libtool-ltdl-devel
2、checking for special libxml2 includes... configure: error: libxml2 config not found
解決辦法:
yum -y install libxml2
3、configure: error: BZ2 libraries not found
解決辦法:
yum -y install bzip2-devel glib2-devel
前三種感覺是常識性問題,各位如果經常安裝源碼包的話這種錯誤解決起來應該很easy的。
4、安裝Reusable-Cluster-Components-glue--glue-1.0.9
./.libs/libplumb.so: undefined reference to `uuid_parse’
./.libs/libplumb.so: undefined reference to `uuid_generate’
./.libs/libplumb.so: undefined reference to `uuid_copy’
./.libs/libplumb.so: undefined reference to `uuid_is_null’
./.libs/libplumb.so: undefined reference to `uuid_unparse’
./.libs/libplumb.so: undefined reference to `uuid_clear’
./.libs/libplumb.so: undefined reference to `uuid_compare’
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
解決辦法:
./configure --prefix=$PREFIX --with-daemon-user=${CLUSTER_USER} --with-daemon-group=${CLUSTER_GROUP} --enable-fatal-warnings=no LIBS='/lib64/libuuid.so.1'
各位在./configure的時候指定一下LIBS,如果是32位系統的話改成LIBS='/lib/libuuid.so.1'。下面ClusterLabs-resource Heartbeat在./configure的時候都指定一下,要不然繼續報錯。
5、安裝Heartbeat-3-0-7
uuid_parse.c:250: error: expected ‘;’, ‘,’ or ‘)’ before ‘uu’
uuid_parse.c:469: error: expected ‘)’ before ‘out’
uuid_parse.c:484: error: expected ‘)’ before ‘out’
uuid_parse.c:512: error: expected ‘)’ before ‘out’
gmake[1]: *** [uuid_parse.lo] Error 1
gmake[1]: Leaving directory `/usr/src/Heartbeat-3-0-7e3a82377fa8/replace'
make: *** [all-recursive] Error 1
解決辦法:
# ./configure --prefix=$PREFIX --enable-fatal-warnings=no LIBS='/lib64/libuuid.so.1'
gmake[1]: --xinclude: Command not found
gmake[1]: *** [heartbeat.8] Error 127
gmake[1]: Leaving directory `/usr/src/Heartbeat-3-0-7e3a82377fa8/doc'
make: *** [all-recursive] Error 1
解決辦法:
# yum -y install libxslt-devel
安裝Heartbeat-3-0-7各種錯誤解決方案
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
/bin/rm: cannot remove `libtoolT’: No such file or directory 解決方案
crazylinux
2019-07-19 13:21:23
張宴Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建勝過Apache十倍的Web服務器(第6版)故障解決方案
crazylinux
2019-02-22 14:25:04
CentOS5.5部署zlib導致yum使用不了,報錯Yum Segmentation Fault (core Dumped)
crazylinux
2019-02-22 14:25:02
64位Linux下安裝軟件注意事項
悟空幫旅行
2018-09-12 05:26:03
./libtool: line 990: g++: command not found故障解決
crazylinux
2018-09-11 09:24:11
CentOS6.2配置php-cgi錯誤解決辦法
crazylinux
2018-09-11 09:24:10
CentOS6.2解決passwd: Authentication token manipulation error報錯
crazylinux
2018-09-11 09:24:10
sudo執行時報錯error while loading shared libraries: libsasl2.so.2
crazylinux
2018-09-11 09:24:10
CentOS6.2安裝源碼httpd-2.4.1錯誤解決辦法
crazylinux
2018-09-11 09:24:10
CentOS5.5部署zlib導致yum使用不了,報錯Yum Segmentation Fault (core Dumped)
crazylinux
2018-09-11 09:24:10
解決CentOS6.2下安裝ipvsadm-1.26報錯
crazylinux
2018-09-11 09:24:10
CentOS6.2下安裝apr-1.4.6報錯解決辦法
crazylinux
2018-09-11 09:24:09
24小時熱門文章