jq configure error autoreconf: failed to run aclocal: No such file or directory
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