2013-09-24 6 views
67

मैं ओरिएंट डीबी सी ++ लाइब्रेरी में automake करने की कोशिश कर रहा हूं, लेकिन कुछ त्रुटियां प्राप्त कर रहा हूं।त्रुटि: लिबोटोल लाइब्रेरी का उपयोग किया गया लेकिन 'LIBTOOL' अपरिभाषित

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

मैं configure.ac है और Makefile.am पहले से ही परिभाषित किया।

मैं निम्नलिखित autotools

  • aclocal चलाने

  • autoheader

  • automake:

libtool (जीएनयू 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 मैं/usr/share/libtool

  • aclocal मैं।

+3

तो यह सब कुछ 'autogen.sh' या 'initgen.sh' कभी भी बताता है। –

+7

किसी और के लिए इस त्रुटि पर ठोकर खाने के लिए मेरे लिए फिक्स था: 'sudo apt-libtol इंस्टॉल करें'। – Casper

उत्तर

61

इसे फिक्स्ड।

  • aclocal

  • autoheader

+79

मेरे मामले में, मुझे सिर्फ libtool स्थापित करने की आवश्यकता है। 'sudo apt-get libtool' – Aust

+7

इंस्टॉल करें @ वैसे ही, होमब्री का उपयोग कर ओएस एक्स के लिए libtool इंस्टॉल करें –

59

@Casper और @Aust के लिए धन्यवाद मेरे लिए एक अच्छा जवाब स्थापित करने के लिए किया गया था: मैं निर्देशिका में libtoolize को चलाने के लिए, तो फिर से चलाने की जरूरत libtool:

sudo apt-get install libtool 
संबंधित मुद्दे