librabbitmq icon indicating copy to clipboard operation
librabbitmq copied to clipboard

make install fails with "error: Libtool library used but 'LIBTOOL' is undefined"

Open edmorley opened this issue 8 years ago • 4 comments

I'm trying to build from source on Ubuntu 16.04, since the latest pypi release is 2 years old.

The readme says to:

  • $ git clone git://github.com/celery/librabbitmq.git
  • $ cd librabbitmq
  • $ make install

However even after installing libtool (plus a number of other deps not explicitly called out in the README), I still get:

$ make install
rm -rf build
git submodule init
git submodule update
(cd rabbitmq-c; rm -rf codegen; ln -sf ../rabbitmq-codegen ./codegen)
(cd rabbitmq-c; test -f configure || autoreconf -i)
(cd rabbitmq-c; test -f Makefile  || automake --add-missing)
Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:6:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:6:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:6:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:6:   its definition is in aclocal's search path.
Makefile:22: recipe for target 'rabbitmq-c' failed
make: *** [rabbitmq-c] Error 1

edmorley avatar Sep 08 '16 14:09 edmorley

I don't have a solution to your issue. But, can you try building the manylinux1 wheels (see: https://github.com/celery/librabbitmq/pull/87) and then installing those?

amitsaha avatar Sep 17 '16 03:09 amitsaha

I don't have docker installed at the moment, I'll give this a go when I do in the future.

edmorley avatar Sep 19 '16 11:09 edmorley

also have this issue, anybody have the solution to bypass it ?

dmitry-kostin avatar Mar 23 '18 09:03 dmitry-kostin

From an Alpine Linux Dockerfile this is working since 2.0.0 tag and on:

apk add --update \
    libtool \
    cmake \
    autoconf \
    automake && \
    cd / && \
    git clone https://github.com/celery/librabbitmq.git && \
    cd librabbitmq/ && \
    git checkout tags/2.0.0 && \
    make install && \
    cd .. && rm -rf librabbitmq

on debian based (ubuntu) should be similar with apt-get commands.

danigosa avatar Apr 05 '18 16:04 danigosa