How to install jq on RHEL6.5

There's seems to ready yum package. So I've downloaded the tarball, but as soon as I ran autoreconf -i , I got the following:

configure.ac:14: warning: macro `AM_PROG_AR' not found in library

configure.ac:10: error: Autoconf version 2.64 or higher is required

configure.ac:10: the top level

autom4te: /usr/bin/m4 failed with exit status: 63

aclocal: autom4te failed with exit status: 63

autoreconf: aclocal failed with exit status: 63

So, how can one install jq on RHEL 6.5?

Thank you!


Solution 1:

As it says on the development page for jq "jq is written in C and has no runtime dependencies". So just download the file and put it in place with the following:

wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
chmod +x ./jq
cp jq /usr/bin

Solution 2:

yum install -y epel-release

yum install -y jq

Solution 3:

jq is in the EPEL repository, which you should already have enabled.

Once you have enabled EPEL, you can just yum install jq like everything else.