error: Libtool library used but 'LIBTOOL' is undefined
library used but ranlib' is undefined
error: required file './ltmain.sh' not found
I am trying to automake
the OrientDb C++ library, but getting some errors.
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
I have configure.ac and Makefile.am already defined.
I run the following autotools
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
Things I already tried:
autoreconf
aclocal -I /usr/share/libtool
aclocal -I .
Thanks to @Casper and @Aust a good answer for me was to install libtool:
sudo apt-get install libtool
error: Libtool library used but 'LIBTOOL' is undefined · Issue #116 , error: Libtool library used but 'LIBTOOL' is undefined #116. Closed. 1xch opened this issue on Mar 26, 2019 · 2 comments. Closed GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. error: Libtool library used
Libtool library used but 'LIBTOOL' is undefined · Issue #112 , Trying to autogen.sh it I get src/libfswatch/Makefile.am:21: error: Libtool library used but 'LIBTOOL' is undefined src/libfswatch/Makefile.am:21: I am trying to build riscv-tool chain but I am getting the following error: libjaylink/Makefile.am:23: error: Libtool library used but 'LIBTOOL' is undefined libjaylink/Makefile.am:23: The usual way to define 'LIBTOOL' is to add 'LT_INIT' libjaylink/Makefile.am:23: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Libtool library used but 'LIBTOOL' is undefined, src/mesa/drivers/dri/swrast/Makefile.am:39: error: Libtool library used but 'LIBTOOL' is undefined src/mesa/drivers/dri/swrast/Makefile.am:39: Libtool library used but 'LIBTOOL' is undefined The usual way to define 'LIBTOOL' is to add `AC_PROG_LIBTOOL' to `configure.ac' and run `aclocal' and `autoconf' again.
Libtool library used but `LIBTOOL' is undefined??, Hello, * kknd1233 wrote on Wed, Jan 05, 2011 at 12:14:20AM CET: > And then when I run the command 'autoreconf --install', it said an error If you omit both `-rpath' and `-static', libtool will create a convenience library that can be used to create other libtool libraries, even shared ones. Just like in the static case, the library behaves as an alias to a set of object files and dependency libraries, but in this case the object files are suitable for inclusion in shared libraries.
Libtool library used but `LIBTOOL' is undefined (Example), Problem: When trying to automake something, it says: src/Makefile.am:85: Libtool library used but `LIBTOOL' is undefined src/Makefile.am:85: If you omit both `-rpath' and `-static', libtool will create a convenience library that can be used to create other libtool libraries, even shared ones. Just like in the static case, the library behaves as an alias to a set of object files and dependency libraries, but in this case the object files are suitable
OpenOCD, INSTALL' libjaylink/Makefile.am:23: error: Libtool library used but 'LIBTOOL' is undefined libjaylink/Makefile.am:23: The usual way to define Libtool caught a common error… trying to build a library from standard objects instead of special .lo object files. This doesn’t matter so much for static libraries, but on shared library systems, it is of great importance.
Comments
- For anyone else stumbling on this error the fix for me was:
sudo apt-get install libtool
. - Thanks @Casper you saved my lot of time. For centOs folks it is
yum install libtool
. - In my case, I just need to install libtool.
sudo apt-get install libtool
- @Aust same, brew install libtool for OS X using homebrew
- You could mark your answer as solved since it solved your problem.