Java代码
wget http://hg.linux-ha.org/glue/archive/glue-1.0.7.tar.bz2
tar -vxjf glue-1.0.7.tar.bz2
cd Reusable-Cluster-Components-glue--glue-1.0.7
./autogen.sh
可能需要安装的:
Java代码
yum install autoconf
yum install automake
yum install libtool
可能碰到的问题:
libtoolize: `COPYING.LIB' not found in `/usr/share/libtool/libltdl'
将别的机器的libltdl copy到相应目录,否则在make时可能会出现
Making all in libltdl
gmake[1]: Entering directory `/soft/Reusable-Cluster-Components-glue--glue-1.0.7/libltdl'
gmake[1]: *** No rule to make target `all'. Stop.
gmake[1]: Leaving directory `/soft/Reusable-Cluster-Components-glue--glue-1.0.7/libltdl'
make: *** [all-recursive] Error 1
出现上述错误后,删除已经编译的文件夹,然后copy上述文件,再执行以上操作
Java代码
./configure --prefix=/usr --sysconfdir=/etc
可能碰到的问题:
问题:configure: error: libxml2 config not found
rpm -qa|grep libxml
解决:yum install libxml2 libxml2-devel
问题:configure: error: BZ2 libraries not found
解决:yum -y install bzip2-devel glib2-devel
Java代码
make
可能碰到的问题:
问题:
lib/pils/.libs/libpils.so -lbz2 -lxml2 -lc -lrt -ldl -lglib-2.0 -lltdl
./.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
解决:yum install e2fsprogs-devel libuuid-devel
问题:
error : Operation in progress
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/html/formal.xsl"
compilation error: file http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl line 46 element include
xsl:include : unable to load http://docbook.sourceforge.net/release/xsl/current/html/formal.xsl
http://docbook.sourceforge.net/release/xsl/current/html/table.xsl:1: parser error : Document is empty
^
http://docbook.sourceforge.net/release/xsl/current/html/table.xsl:1: parser error : Start tag expected, '