Table of contents

jq configure error autoreconf: failed to run aclocal: No such file or directory

Linux Jun 19, 2020 Viewed 244 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.

$ autoreconf -fi
Can't exec "aclocal": No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory

Solution

It needs to install automake.

1. Install from source

Mac/Linux OS can install from the source code, go to https://www.gnu.org/software/automake/#TOCdownloading to download the automake source code.

$ ftp://ftp.gnu.org/gnu/automake/automake-1.16.tar.xz
$ tar xf automake-1.16.tar.xz 
$ cd automake-1.16
$  ./configure
$ make
$ make install

2. Install with command

  • Ubuntu/Debian
sudo apt-get install automake
  • RHEL/CentOS
sudo yum install automake
Updated Jun 27, 2020