[Pacemaker] Pacemaker compilation problem solved
Hunny Bunny
tmphb at yahoo.com
Fri Dec 18 22:04:55 UTC 2009
For some reason when you compile Pacemaker from sources, its ./autogen.sh && ./configure cannot detect Corosync and OpenAIS headers. Regardless if you set proper CFLAGS="-I$PREFIX/include -L$PREFIX/lib" or not.
Only when I copied or soft linked corosync and openais header directories into Pacemaker-1-0-xxxxxxxxx/include directory everything went very smoothly.
Is it a bug or a feature? Go figure ...
So, the final working configuration / compilation file for Pacemaker look like this:
<--------------------- snipped ---------------------->
#!/bin/bash
source /etc/profile.local
ldconfig
PREFIX=/usr/local/cluster
CLUSTER_USER=cluster
CLUSTER_GROUP=cluster
CFLAGS="-I$PREFIX/include -L$PREFIX/lib"
CXXFLAGS=$CFLAGS
export PREFIX CLUSTER_USER CLUSTER_GROUP CFLAGS CXXFLAGS
# Copy Corosync and OpenAIS headers into source include
cp -a $PREFIX/include/corosync ./include
cp -a $PREFIX/include/openais ./include
../autogen.sh && ./configure \
--prefix=$PREFIX \
--sbindir=$PREFIX/sbin \
--bindir=$PREFIX/bin \
--libdir=$PREFIX/lib \
--libexecdir=$PREFIX/libexec \
--includedir=$PREFIX/include \
--sysconfdir=/etc \
--datarootdir=$PREFIX/share \
--datadir=$PREFIX/share \
--datarootdir=$PREFIX/share \
--mandir=$PREFIX/man \
--docdir=$PREFIX/doc/pacemaker \
--infodir=$PREFIX/info \
--localstatedir=$PREFIX/var \
--with-initdir=/etc/init.d \
--with-ais \
--with-ais-prefix=$PREFIX \
--with-lcrso-dir=$PREFIX/libexec/lcrso \
--with-snmp \
--with-esmtp \
--without-heartbeat \
--enable-thread-safe \
--disable-fatal-warnings
make
make install
<--------------------- snipped ---------------------->
Thanks to everyone who tried to help, especially Andrew!
Merry Christmas!
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091218/fa148bf1/attachment-0002.html>
More information about the Pacemaker
mailing list