库中找不到"AM_PROG_LIBTOOL"

Mos*_* GZ 5 automake autoconf libtool

我尝试在centOS 7中编译库时遇到错误,我尝试重新安装libtool但它没有帮助.以下是错误

+ autoreconf --install
configure.ac:32: warning: macro 'AM_PROG_LIBTOOL' not found in library
configure.ac:32: error: possibly undefined macro: AM_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
Run Code Online (Sandbox Code Playgroud)

SzB*_*SzB 24

我只是通过以下方式解决了它:

须藤 yum 安装 libtool

  • 我在 Ubuntu 18.04 上遇到了同样的问题。`sudo apt install libtool` 对我有用 (6认同)

Bre*_*ale 5

您可能需要:autoreconf -fvi确保所有内容都已更新.

值得注意的是,AM_PROG_LIBTOOL它已被弃用,应该替换为LT_INIT,并且可以LT_PREREQ预先替换.