jq is written in C and has no runtime dependencies, so it should bepossible to build it for nearly any platform. Prebuilt binaries areavailable for Linux, OS X and Windows.
The binaries should just run, but on OS X and Linux you may needto make them executable first using chmod +x jq
.
- On windows, the Cygwin is a Unix-like environment. OS X (now macOS) is full on UNIX, so there is no need for any additions to get these unix tools. Open Terminal.app and start with manual pages. The more and tail -f commands are typical unix commands to page, search, and watch a log file. For your example, the tail command to watch your log.
- Cross-Platform: Molecular builder/editor for Windows, Linux, and Mac OS X. Free, Open Source: Easy to install and all source code and documentation is available to modify or extend. International: Translations into Chinese, French, German, Italian, Russian, Spanish, and others, with more languages to come.
Apr 26, 2007 Take a look at the manual that comes with Cygwin, which is available online and in PDF: Cygwin User's Guide; Linux. There is a nice series of interactive tutorials on using Linux, called Linux Survival. A gentle introduction to Mac OS X is available from Learning Mac OS X but this does not cover using the Terminal.
jq is licensed under the MIT license. For all of the gorydetails, read the file COPYING
in the source distribution.
jq uses a C library for decimal number support. This is an ICU 1.8.1licensed code obtained from the ICU downloads archivehttp://download.icu-project.org/files/decNumber/decNumber-icu-368.zip.
Linux
jq 1.5 is in the official Debian and Ubuntu repositories. Install using
sudo apt-get install jq
.jq 1.5 is in the official Fedora repository. Install using
sudo dnf install jq
.jq 1.4 is in the official openSUSE repository. Install using
sudo zypper install jq
.jq 1.5 is in the official Arch repository. Install using
sudo pacman -S jq
.jq 1.6 binaries for 64-bit or 32-bit.
jq 1.5 binaries for 64-bit or 32-bit.
jq 1.4 binaries for 64-bit or 32-bit.
jq 1.3 binaries for 64-bit or 32-bit.
OS X
Use Homebrew to install jq 1.6 with
brew install jq
.Use MacPorts to install jq 1.6 with
port install jq
.jq 1.6 binary for 64-bit.
jq 1.5 binary for 64-bit.
jq 1.4 binaries for 64-bit or 32-bit.
jq 1.3 binaries for 64-bit or 32-bit.
FreeBSD
pkg install jq
as root installs a pre-built binary package.make -C /usr/ports/textproc/jq install clean
as root installs the jqport from source.
Solaris
pkgutil -i jq
in OpenCSW for Solaris 10+, Sparc and x86.jq 1.4 binaries for Solaris 11 64-bit or 32-bit.
Windows
Use Chocolatey NuGet to install jq 1.5 with
chocolatey install jq
.jq 1.6 executables for 64-bit or 32-bit.
jq 1.5 executables for 64-bit or 32-bit.
jq 1.4 executables for 64-bit or 32-bit.
jq 1.3 executables for 64-bit or 32-bit.
Cygwin Mac Os X Download Iso
Checksums and signatures
SHA-256 checksums are provided for all release and pre-release binaries.They can be found undersig/v1.x/sha256sum.txt.The checksums for jq 1.6 are insig/v1.6/sha256sum.txt.The checksums for jq 1.5 are insig/v1.5/sha256sum.txt.
Additionally, all binaries are signed by thejq Package Signing Key.The signatures can be found undersig/v1.x/*.asc.The signatures for jq 1.6 are insig/v1.5/*.asc.The signatures for jq 1.5 are insig/v1.5/*.asc.You can use GnuPG to verify a signature by downloadingthe signature and running gpg --verify signature.asc
.
From source on Linux, OS X, Cygwin, and other POSIX-like operating systems
You can build it using the usual ./configure && make && sudomake install
rigmarole.
If you're interested in using the lastest development version, try:
To build it from a git clone, you'll need to install a fewpackages first:
For Linux systems, these will all be in your system's packagemanager, and if you do development on the machine they're mostlikely already installed.
On OS X, these are all included in Apple's command line tools, which canbe installed from Xcode. However,you may find that you need a newer version of Bison than the one providedby Apple. This can be found in Homebrew orMacPorts.
The --disable-maintainer-mode
flag says to use the pre-generated lexerand parser that come with the code. To compile the lexer and parser alsofrom source, leave out this flag. You will need to installFlex andBison.
Cygwin X Server
Building the documentation
jq's documentation is compiled into static HTML using Python.To build the docs, run pipenv run python3 build_website.py
fromthe docs/ subdirectory. To serve them locally, you can runpython3 -m SimpleHTTPServer
. You'll need a few Python dependencies,which can be installed by following the instructions in docs/README.md
.
The man page is built by make jq.1
, or just make
, also fromthe YAML docs, and you'll still need the Python dependencies tobuild the manpage.