运行autoreconf -fvi报错configure.ac:29: error: possibly undefined macro: AM_PROG_LIBTOOL

报错内容说明configure.ac文件中使用了AM_PROG_LIBTOOL,但autoreconf 无法找到它。

这是因为libtool没有正确的安装或者配置。

首先安装libtool:

sudo apt-get update
sudo apt-get install libtool

在项目的根目录下初始化libtool:

libtoolize

接下来重新运行autoreconf -fvi,或许就没问题啦!

你可能感兴趣的:(linux)