jq 编译错误 warning: macro 'AM_PROG_LIBTOOL' not found in library
问题描述
下载并编译 jq,运行以下命令。
$ git clone https://github.com/stedolan/jq.git
$ cd jq
$ git submodule update --init
$ autoreconf -fi
最后报错了。
configure.ac:36: warning: macro 'AM_PROG_LIBTOOL' not found in library
configure.ac:36: 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
解决方法
需要安装 libtool
。
- Mac OS
brew install libtool
- Ubuntu/Debian
sudo apt-get install libtool
- RHEL/CentOS
sudo yum install libtool
非特殊说明,本网站所有文章均为原创。如若转载,请注明出处:https://mip.cpming.top/p/warning-macro-am_prog_libtool-not-found