jq 编译错误 warning: macro 'AM_PROG_LIBTOOL' not found in library

Linux 2020-06-18 阅读 299 评论 0

问题描述

下载并编译 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
最后更新 2020-06-18