Table of contents

jq warning: macro 'AM_PROG_LIBTOOL' not found in library

Linux Jun 23, 2020 Viewed 416 Comments 0

Issue

Download the jq source and configure, run the commands blew.

$ git clone https://github.com/stedolan/jq.git
$ cd jq
$ git submodule update --init
$ autoreconf -fi

But the following error occurs.

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

Solution

It needs to install libtool.

  • Mac OS
brew install libtool
  • Ubuntu/Debian
sudo apt-get install libtool
  • RHEL/CentOS
sudo yum install libtool
Updated Jun 27, 2020