त्रुटि: लिबटूल लाइब्रेरी का उपयोग किया गया लेकिन 'LIBTOOL' अपरिभाषित है


117

मैं automakeओरिएंटडब सी ++ लाइब्रेरी की कोशिश कर रहा हूं , लेकिन कुछ त्रुटियां हो रही हैं।

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

मेरे पास कॉन्फ़िगर.एसी और मेकफाइल.म पहले से ही परिभाषित है।

मैं निम्नलिखित ऑटोटूल चलाता हूं

  • aclocal

  • autoheader

  • automake:

libtool (GNU libtool) 2.4.2

configure.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

चीजें जो मैंने पहले ही आजमाई थीं:

  • autoreconf

  • aclocal -I / usr / share / libtool

  • aclocal -I।


19
इस त्रुटि पर ठोकर खाने वाले किसी और के लिए मेरे लिए ठीक था sudo apt-get install libtool:।
कैस्पर

3
धन्यवाद @ कैस्पर आपने मेरा बहुत समय बचाया। सेंटो लोगों के लिए यह है yum install libtool
आंचल

जवाबों:


142

मेरे लिए एक अच्छा जवाब libtool स्थापित करना था:

sudo apt-get install libtool

86

ठीक कर दिया। मुझे libtoolizeनिर्देशिका में चलाने की आवश्यकता थी , फिर से फिर से चलाना:

  • aclocal

  • autoheader


89
मेरे मामले में, मुझे बस libtool स्थापित करने की आवश्यकता है। sudo apt-get install libtool
ऑस्ट

10
@ उसी तरह, होमबॉव का उपयोग करके ओएस एक्स के लिए काढ़ा लिबटूल स्थापित करें
रॉन ई

2

MacOs पर मेरे मामले में मैंने इसे हल किया:

brew link libtool

मुझे पता है कि यह एक पुराना सवाल है लेकिन अभी इसमें भाग गया है, शायद यह किसी और की मदद करेगा।


1

उन लोगों के लिए जो यहां समाप्त हो गए और उपयोग कर रहे हैं CYGWIN, निम्नलिखित पैकेजों को साइबरविन में स्थापित करें और फिर से चलाएं:

  • cygwin32-libtool
  • libtool
  • libtool-debuginfo

हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.