c - 错误 : Libtool library used but 'LIBTOOL' is und

我正在尝试automake OrientDb C++ 库,但遇到了一些错误。

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。

我运行以下自动工具

  • aclocal

  • 自动标题

  • 自动制作:

libtool (GNU libtool) 2.4.2

配置.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

我已经尝试过的事情:

  • 自动重新配置

  • aclocal -I/usr/share/libtool

  • aclocal -I .

最佳答案

对我来说一个好的答案是安装 libtool:

sudo apt-get install libtool

关于c - 错误 : Libtool library used but 'LIBTOOL' is undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18978252/

相关文章:

python - 如何修改文本文件?

linux - 我可以使用 GDB 调试正在运行的进程吗?

linux - 连接文件并在文件之间插入新行

linux - Linux 上的 PostgreSQL 数据库默认位置

python - Python NumPy 中的 np.mean() 与 np.average()?

python - Pandas 重采样文档

Python请求 - 打印整个http请求(原始)?

linux - 如何根据字段的数值对文件进行排序?

python - 在 Python 中格式化多行 dict 的正确方法是什么?

linux - 如何在 Bash 中列出每个文件和目录的大小并按大小降序排序?