Fehler: Libtool-Bibliothek verwendet, aber ‘LIBTOOL’ ist nicht definiert

Lesezeit: 3 Minuten

Benutzeravatar von Imme22009
Imme22009

ich versuche zu automake die OrientDb C++ Bibliothek, aber es werden einige Fehler angezeigt.

Makefile.am:10: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:10:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:10:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:10:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:10:   its definition is in aclocal's search path.

https://github.com/tglman/orientdb-c

https://github.com/tglman/orientdb-c/wiki/Install

Ich habe configure.ac und Makefile.am bereits definiert.

Ich führe die folgenden Autotools aus

  • aklokal

  • Autoheader

  • Automarke:

libtool (GNU-libtool) 2.4.2

konfigurieren.ac

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([orientdb-c],[0.9])
AC_CONFIG_SRCDIR([src/o_query_internal.h])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE()

# Checks for programs.
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

LT_INIT

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([malloc.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h     sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([gethostbyname memset socket strchr strcspn strdup strerror])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

Dinge, die ich bereits ausprobiert habe:

  • Autoreconf

  • aclocal -I /usr/share/libtool

  • aclocal -I .

  • Für alle anderen, die über diesen Fehler stolpern, war die Lösung für mich: sudo apt-get install libtool.

    – Kasper

    12. März 2016 um 14:37 Uhr


  • Danke @Casper, du hast mir viel Zeit gespart. Für CentOs-Leute ist es das yum install libtool.

    – Achal

    14. August 2019 um 12:22 Uhr


Elis Benutzeravatar
Eli

Eine gute Antwort für mich war, libtool zu installieren:

sudo apt-get install libtool

  • brew install libtool auf einem Mac, wenn Sie Homebrew verwenden.

    – Josch

    14. September um 17:54 Uhr

Behoben. Ich musste laufen libtoolize im Verzeichnis, dann erneut ausführen:

  • aklokal

  • Autoheader

  • In meinem Fall muss ich nur libtool installieren. sudo apt-get install libtool

    – Aust

    11. März 2015 um 21:14 Uhr

  • @Aust gleich, brew install libtool für OS X mit Homebrew

    – Ron E

    4. Oktober 2015 um 21:54 Uhr

  • Ich finde eine ähnliche Frage zu SO, und alle Antworten waren “einfach libtool installieren”. Nun, ich hatte bereits libtool installiert und bekam immer noch den Fehler. Dies Antwort ist, was mir wirklich geholfen hat.

    – bartgol

    2. März 2021 um 18:25 Uhr

  • port install libtool funktioniert auch, wenn Sie macOS (OS X) und MacPorts verwenden.

    – NS-Gott

    16. März 2021 um 15:22 Uhr

Juliens Benutzeravatar
Julien

In meinem Fall unter macOS habe ich es gelöst mit:

brew link libtool

Benutzeravatar von fatcook
Fettkoch

Für Leute, die hier gelandet sind und verwenden CYGWINinstallieren Sie die folgenden Pakete in Cygwin und führen Sie sie erneut aus:

  • cygwin32-libtool
  • libtool
  • libtool-debuginfo

Für Mac ist es einfach:

brew install libtool

Benutzeravatar von Aaron Mason
Aaron Mason

Für Leute, die Tiny Core Linux verwenden, müssen Sie auch installieren libtool-dev da es die *.m4-Dateien benötigt libtoolize.

1424750cookie-checkFehler: Libtool-Bibliothek verwendet, aber ‘LIBTOOL’ ist nicht definiert

This website is using cookies to improve the user-friendliness. You agree by using the website further.

Privacy policy