Automake:如何修复 Libtool library used but 'LIBTOOL' is undefined

问题

你正在尝试使用 automake 配置项目,但看到如下错误消息

libtool_error.txt
src/Makefile.am:3: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:3:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:3:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:3:   If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:3:   its definition is in aclocal's search path.

解决方案

使用例如以下命令安装 libtool

install_libtool.sh
sudo apt install libtool

Check out similar posts by category: Build Systems