git clone https://github.com/stedolan/jq.git
cd jq
git submodule update --init
autoreconf -fi
./configure --with-oniguruma=builtin
make LDFLAGS=-all-static -j8
cp .libs/libjq.a ../
cd modules/oniguruma
make
cp src/.libs/libonig.a ../../
試してみる:
make
./bin/01_hello_jq
hello jq!