default.yml (jq-1.5) | : | default.yml (jq-1.6) | ||
---|---|---|---|---|
skipping to change at line 18 | skipping to change at line 18 | |||
available for Linux, OS X and Windows. | available for Linux, OS X and Windows. | |||
The binaries should just run, but on OS X and Linux you may need | The binaries should just run, but on OS X and Linux you may need | |||
to make them executable first using `chmod +x jq`. | to make them executable first using `chmod +x jq`. | |||
jq is licensed under the MIT license. For all of the gory | jq is licensed under the MIT license. For all of the gory | |||
details, read the file `COPYING` in the source distribution. | details, read the file `COPYING` in the source distribution. | |||
### Linux | ### Linux | |||
* jq 1.4 binaries for [64-bit](linux64/jq) or [32-bit](linux32/jq) system | * jq 1.5 is in the official [Debian](https://packages.debian.org/jq) and | |||
s. | ||||
* jq 1.3 binaries for [64-bit](linux64/jq-1.3/jq) or [32-bit](linux32/jq- | ||||
1.3/jq) systems. | ||||
* For Arch users, a PKGBUILD for jq-1.1 is in the | ||||
[AUR](https://aur.archlinux.org/packages.php?ID=63849), as | ||||
well as a PKGBUILD for the HEAD of master | ||||
([jq-git](https://aur.archlinux.org/packages.php?ID=63850)). | ||||
You can install them using | ||||
[Yaourt](https://wiki.archlinux.org/index.php/Yaourt) or | ||||
manually by following instructions on [Arch Linux's | ||||
Wiki](https://wiki.archlinux.org/index.php/Arch_UseRepository). | ||||
* jq 1.4 is in the official [Debian](https://packages.debian.org/jq) and | ||||
[Ubuntu](http://packages.ubuntu.com/jq) repositories. Install using | [Ubuntu](http://packages.ubuntu.com/jq) repositories. Install using | |||
`sudo apt-get install jq`. | `sudo apt-get install jq`. | |||
* jq 1.4 is [in Debian](http://packages.debian.org/jq) | * jq 1.5 is in the official | |||
[Fedora](http://pkgs.fedoraproject.org/cgit/jq.git/) repository. | ||||
* jq 1.3.2 is in the official Fedora repository. You can install using | Install using `sudo dnf install jq`. | |||
`sudo yum install jq`. | ||||
* jq 1.4 is in the official [openSUSE](https://software.opensuse.org/pack | ||||
age/jq) | ||||
repository. Install using `sudo zypper install jq`. | ||||
* jq 1.5 is in the official | ||||
[Arch](https://www.archlinux.org/packages/?sort=&q=jq&maintainer=&flagg | ||||
ed=) | ||||
repository. Install using `sudo pacman -Sy jq`. | ||||
* jq 1.6 binaries for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-lin | ||||
ux64) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-lin | ||||
ux32). | ||||
* jq 1.5 binaries for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-lin | ||||
ux64) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-lin | ||||
ux32). | ||||
* jq 1.4 binaries for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-lin | ||||
ux-x86_64) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-lin | ||||
ux-x86). | ||||
* jq 1.3 binaries for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-lin | ||||
ux-x86_64) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-lin | ||||
ux-x86). | ||||
### OS X | ### OS X | |||
* `brew install jq` using [homebrew](http://mxcl.github.com/homebrew/) | * Use [Homebrew](http://brew.sh/) to install jq 1.5 with | |||
`brew install jq`. | ||||
* Or, grab prebuilt jq 1.4 [64-bit binaries](osx64/jq) or [32-bit | * jq 1.6 binary for | |||
binaries](osx32/jq) | [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx | |||
-amd64). | ||||
* Or, grab prebuilt jq 1.3 [64-bit binaries](osx64/jq-1.3/jq) or [32-bit | * jq 1.5 binary for | |||
binaries](osx32/jq-1.3/jq) | [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-osx | |||
-amd64). | ||||
* jq 1.4 binaries for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-osx | ||||
-x86_64) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-osx | ||||
-x86). | ||||
* jq 1.3 binaries for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-osx | ||||
-x86_64) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-osx | ||||
-x86). | ||||
### FreeBSD | ||||
* `pkg install jq` as root installs a pre-built | ||||
[binary package](https://www.freebsd.org/doc/en_US.ISO8859-1/books/hand | ||||
book/pkgng-intro.html). | ||||
* `make -C /usr/ports/textproc/jq install clean` as root installs the | ||||
[jq](https://www.freshports.org/textproc/jq/) | ||||
[port](https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports | ||||
-using.html) | ||||
from source. | ||||
### Solaris | ### Solaris | |||
* `pkgutil -i jq` in [OpenCSW](http://www.opencsw.org/p/jq) for Solaris 1 | * `pkgutil -i jq` in [OpenCSW](https://www.opencsw.org/p/jq) for Solaris | |||
0+, Sparc and x86 | 10+, Sparc and x86. | |||
* jq 1.4 executables for Solaris 11 [64-bit](solaris11-64/jq) or [32-bit] | * jq 1.4 binaries for Solaris 11 | |||
(solaris11-32/jq) | [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-sol | |||
aris11-64) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-sol | ||||
aris11-32). | ||||
### Windows | ### Windows | |||
* `chocolatey install jq` using [Chocolatey NuGet](https://chocolatey.org | * Use [Chocolatey NuGet](https://chocolatey.org/) to install jq 1.5 with | |||
/) | `chocolatey install jq`. | |||
* jq 1.4 executables for [64-bit](win64/jq.exe) or [32-bit](win32/jq.exe) | ||||
* jq 1.3 executables for [64-bit](win64/jq-1.3/jq-1.3.exe) or [32-bit](wi | * jq 1.6 executables for | |||
n32/jq-1.3/jq-1.3.exe) | [64-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win | |||
64.exe) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win | ||||
32.exe). | ||||
* jq 1.5 executables for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win | ||||
64.exe) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win | ||||
32.exe). | ||||
* jq 1.4 executables for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win | ||||
64.exe) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win | ||||
32.exe). | ||||
* jq 1.3 executables for | ||||
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-win | ||||
64.exe) | ||||
or | ||||
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-win | ||||
32.exe). | ||||
### Checksums and signatures | ||||
SHA-256 checksums are provided for all release and pre-release binaries. | ||||
They can be found under | ||||
[sig/v1.x/sha256sum.txt](https://github.com/stedolan/jq/tree/master/sig). | ||||
The checksums for jq 1.6 are in | ||||
[sig/v1.6/sha256sum.txt](https://raw.githubusercontent.com/stedolan/jq/mas | ||||
ter/sig/v1.6/sha256sum.txt). | ||||
The checksums for jq 1.5 are in | ||||
[sig/v1.5/sha256sum.txt](https://raw.githubusercontent.com/stedolan/jq/mas | ||||
ter/sig/v1.5/sha256sum.txt). | ||||
Additionally, all binaries are signed by the | ||||
[jq Package Signing Key](https://raw.githubusercontent.com/stedolan/jq/mas | ||||
ter/sig/jq-release.key). | ||||
The signatures can be found under | ||||
[sig/v1.x/\*.asc](https://github.com/stedolan/jq/tree/master/sig). | ||||
The signatures for jq 1.6 are in | ||||
[sig/v1.5/\*.asc](https://github.com/stedolan/jq/tree/master/sig/v1.6). | ||||
The signatures for jq 1.5 are in | ||||
[sig/v1.5/\*.asc](https://github.com/stedolan/jq/tree/master/sig/v1.5). | ||||
You can use [GnuPG](https://gnupg.org/) to verify a signature by downloadi | ||||
ng | ||||
the signature and running `gpg --verify signature.asc`. | ||||
### From source on Linux, OS X, Cygwin, and other POSIX-like operating sys tems | ### From source on Linux, OS X, Cygwin, and other POSIX-like operating sys tems | |||
* [Source tarball for jq 1.4](source/jq-1.4.tar.gz) | * [Source tarball for jq 1.6](https://github.com/stedolan/jq/releases/dow | |||
nload/jq-1.6/jq-1.6.tar.gz) | ||||
* [Source tarball for jq 1.5](https://github.com/stedolan/jq/releases/dow | ||||
nload/jq-1.5/jq-1.5.tar.gz) | ||||
You can build it using the usual `./configure && make && sudo | You can build it using the usual `./configure && make && sudo | |||
make install` rigmarole. | make install` rigmarole. | |||
If you're interested in using the lastest development version, try: | If you're interested in using the lastest development version, try: | |||
git clone https://github.com/stedolan/jq.git | git clone https://github.com/stedolan/jq.git | |||
cd jq | cd jq | |||
autoreconf -i | autoreconf -i | |||
./configure | ./configure --disable-maintainer-mode | |||
make | make | |||
sudo make install | sudo make install | |||
To build it from a git clone, you'll need to install a few | To build it from a git clone, you'll need to install a few | |||
packages first: | packages first: | |||
* [Flex](http://flex.sourceforge.net/) | ||||
* [Bison](https://www.gnu.org/software/bison/) | ||||
* [GCC](https://gcc.gnu.org) | * [GCC](https://gcc.gnu.org) | |||
* [Make](https://www.gnu.org/software/make/) | * [Make](https://www.gnu.org/software/make/) | |||
* [Autotools](https://www.gnu.org/software/automake/) | * [Autotools](https://www.gnu.org/software/automake/) | |||
For Linux systems, these will all be in your system's package | For Linux systems, these will all be in your system's package | |||
manager, and if you do development on the machine they're most | manager, and if you do development on the machine they're most | |||
likely already installed. | likely already installed. | |||
On OS X, these are all included in Apple's command line tools, which can | On OS X, these are all included in Apple's command line tools, which can | |||
be installed from [Xcode](https://developer.apple.com/xcode/). However, | be installed from [Xcode](https://developer.apple.com/xcode/). However, | |||
you may find that you need a newer version of Bison than the one provided | you may find that you need a newer version of Bison than the one provided | |||
by Apple. This can be found in [Homebrew](http://brew.sh) or | by Apple. This can be found in [Homebrew](http://brew.sh) or | |||
[MacPorts](https://macports.org/). | [MacPorts](https://macports.org/). | |||
`flex` and `bison` are used to generate the lexer and parser for | The `--disable-maintainer-mode` flag says to use the pre-generated lexer | |||
jq. For jq 1.5, neither is required if you use `./configure | and parser that come with the code. To compile the lexer and parser also | |||
--disable-maintainer-mode` instead of `./configure`. This flag says to use | from source, leave out this flag. You will need to install | |||
the pre-generated lexer and parser that come with the code. | [Flex](http://flex.sourceforge.net/) and | |||
[Bison](https://www.gnu.org/software/bison/). | ||||
#### Building the documentation | #### Building the documentation | |||
jq's documentation is compiled into static HTML using | jq's documentation is compiled into static HTML using | |||
[Bonsai](http://www.tinytree.info). To view the documentation | [Bonsai](http://www.tinytree.info). To view the documentation | |||
locally, run `rake serve` (or `bundle exec rake serve`) from the | locally, run `rake serve` (or `bundle exec rake serve`) from the | |||
docs/ subdirectory. To build the docs just `rake build` from the | docs/ subdirectory. To build the docs just `rake build` from the | |||
docs subdirectory. You'll need a few Ruby dependencies, which can | docs subdirectory. You'll need a few Ruby dependencies, which can | |||
be installed by following the instructions in `docs/README.md`. | be installed by following the instructions in `docs/README.md`. | |||
End of changes. 13 change blocks. | ||||
42 lines changed or deleted | 147 lines changed or added |