Hi Andreas,
On Sun, Sep 04, 2011 at 11:22:39PM +0200, Andreas Mock wrote:
> Hi all,
>
> I downloaded the current resource agent file with
> git clone --depth=1 https://github.com/ClusterLabs/resource-agents/
> After
> ./configure --prefix=/usr/local --localstatedir=/var/local
> make
> make install
>
> I get the error
> /usr/local/etc/ha.d/shellfuncs: Zeile 96:
> /usr/lib/ocf/lib//heartbeat/ocf-shellfuncs: file or directory not found
>
> After manually corecting the path to
> /usr/local /usr/lib/ocf/lib//heartbeat/ocf-shellfuncs
> I get the error
> /usr/local//usr/lib/ocf/lib//heartbeat/ocf-shellfuncs: Zeile 56:
> /usr/lib/ocf/lib/heartbeat/ocf-binaries: file or directory not
/usr/local//usr/lib/ocf looks wrong to me.
It seems like configure.ac has a problem in two places. Not
sure, though. Fabio, can you please take a look at the attached
patch. Not sure why do we need OCF_RA_DIR_PREFIX and
OCF_LIB_DIR_PREFIX.
> found
>
> So I'm pretty sure that the directories given to ./configure are
> not honoured correctly.
>
> Can someone with the right knowledge correct these problems?
> Or give the right hints?
You'll need to install first the cluster-glue development
configured with, I guess, --prefix=/usr/local and probably also
--with-ocf-root=/usr/local/lib/ocf. Or wherever you want the
resource agents to live. Also use
--with-ocf-root=/usr/local/lib/ocf for resource-agents.
This may help a bit, but I'm not really sure if it's the whole
story. You'll need to investigate perhaps more.
Thanks,
Dejan
> Best regards
> Andreas Mock
>
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
diff --git a/configure.ac b/configure.ac
index 919b1b2..40139de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -397,22 +397,14 @@ OCF_RA_DIR="${OCF_ROOT_DIR}/resource.d/"
AC_DEFINE_UNQUOTED(OCF_RA_DIR,"$OCF_RA_DIR", Location for OCF RAs)
AC_SUBST(OCF_RA_DIR)
-if test "${prefix}" = "/usr"; then
- OCF_RA_DIR_PREFIX="$OCF_RA_DIR"
-else
- OCF_RA_DIR_PREFIX="${prefix}/$OCF_RA_DIR"
-fi
+OCF_RA_DIR_PREFIX="$OCF_RA_DIR"
AC_SUBST(OCF_RA_DIR_PREFIX)
OCF_LIB_DIR="${OCF_ROOT_DIR}/lib/"
AC_DEFINE_UNQUOTED(OCF_LIB_DIR,"$OCF_LIB_DIR", Location for shared code for OCF RAs)
AC_SUBST(OCF_LIB_DIR)
-if test "${prefix}" = "/usr"; then
- OCF_LIB_DIR_PREFIX="$OCF_LIB_DIR"
-else
- OCF_LIB_DIR_PREFIX="${prefix}/$OCF_LIB_DIR"
-fi
+OCF_LIB_DIR_PREFIX="$OCF_LIB_DIR"
AC_SUBST(OCF_LIB_DIR_PREFIX)
dnl ===============================================
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems