首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误:使用了Libtool库,但未定义'LIBTOOL‘

错误:使用了Libtool库,但未定义'LIBTOOL‘
EN

Stack Overflow用户
提问于 2013-09-24 17:52:09
回答 6查看 120.2K关注 1票数 144

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

代码语言:javascript
复制
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
  • autoheader
  • automake:

libtool (GNU libtool) 2.4.2

configure.ac

代码语言:javascript
复制
# -*- 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 -I -I .
EN

回答 6

Stack Overflow用户

发布于 2016-04-04 19:42:36

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

代码语言:javascript
复制
sudo apt-get install libtool
票数 195
EN

Stack Overflow用户

发布于 2013-09-24 19:12:41

修好了。我需要在目录中运行libtoolize,然后重新运行:

  • aclocal
  • autoheader
票数 103
EN

Stack Overflow用户

发布于 2020-04-07 02:36:31

在我的macOS案例中,我用以下方法解决了这个问题:

代码语言:javascript
复制
brew link libtool
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18978252

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档