1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00
Files
stedolan-jq/docs/content/2.download/default.yml

162 lines
6.2 KiB
YAML
Raw Normal View History

2012-09-18 17:51:53 +01:00
headline: Download jq
body:
- text: |
jq is written in C and has no runtime dependencies, so it should be
possible to build it for nearly any platform. Prebuilt binaries are
available for Linux, OS X and Windows.
The binaries should just run, but on OS X and Linux you may need
to make them executable first using `chmod +x jq`.
2012-09-18 17:51:53 +01:00
jq is licensed under the MIT license. For all of the gory
details, read the file `COPYING` in the source distribution.
2012-09-19 00:08:02 +01:00
2012-10-23 14:46:44 +01:00
### Linux
2015-08-13 22:33:37 -07:00
* jq 1.5 is in the official [Debian](https://packages.debian.org/jq) and
2015-08-07 21:40:19 -07:00
[Ubuntu](http://packages.ubuntu.com/jq) repositories. Install using
`sudo apt-get install jq`.
* jq 1.5 is in the official
2015-08-07 21:40:19 -07:00
[Fedora](http://pkgs.fedoraproject.org/cgit/jq.git/) repository.
Install using `sudo yum install jq`.
2015-09-20 14:11:35 +03:00
* jq 1.4 is in the official [openSUSE](https://software.opensuse.org/package/jq)
repository. Install using `sudo zypper install jq`.
2015-08-07 21:40:19 -07:00
* For Arch users, a PKGBUILD is in the
[AUR](https://aur.archlinux.org/packages/jq-git/).
Refer to the
[ArchWiki](https://wiki.archlinux.org/index.php/Arch_User_Repository)
for how to install from AUR.
2015-08-15 23:12:31 -07:00
* jq 1.5 binaries for
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64)
or
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux32).
* jq 1.4 binaries for
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-linux-x86_64)
or
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-linux-x86).
2015-08-07 21:40:19 -07:00
* jq 1.3 binaries for
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-linux-x86_64)
or
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-linux-x86).
### OS X
2015-08-15 23:12:31 -07:00
* Use [Homebrew](http://brew.sh/) to install jq 1.5 with
`brew install jq`.
2012-10-23 14:46:44 +01:00
2015-08-15 23:44:41 -07:00
* jq 1.5 binary for
[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).
2012-10-23 14:46:44 +01:00
* 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
* Use [FreshPorts](https://www.freshports.org/textproc/jq/) to install
jq 1.4 with `pkg install jq`.
### Solaris
2015-08-15 12:07:00 -07:00
* `pkgutil -i jq` in [OpenCSW](https://www.opencsw.org/p/jq) for Solaris
2015-08-07 21:40:19 -07:00
10+, Sparc and x86.
2014-06-12 19:26:05 -05:00
* jq 1.4 binaries for Solaris 11
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-solaris11-64)
or
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-solaris11-32).
2014-06-12 19:26:05 -05:00
### Windows
2012-09-18 17:51:53 +01:00
* Use [Chocolatey NuGet](https://chocolatey.org/) to install jq 1.5 with
2015-08-07 21:40:19 -07:00
`chocolatey install jq`.
2015-08-15 23:12:31 -07:00
* jq 1.5 executables for
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win64.exe)
or
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win32.exe).
* jq 1.4 executables for
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win64.exe)
or
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.4/jq-win32.exe).
* jq 1.3 executables for
[64-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-win64.exe)
or
[32-bit](https://github.com/stedolan/jq/releases/download/jq-1.3/jq-win32.exe).
### Checksums
See
[sha1sum.txt](https://raw.githubusercontent.com/stedolan/jq/master/sha1sum.txt)
for SHA-1 checksums of the binaries linked above.
### From source on Linux, OS X, Cygwin, and other POSIX-like operating systems
2015-08-17 18:04:56 -07:00
* [Source tarball for jq 1.5](https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz)
2013-05-19 10:48:25 +01:00
You can build it using the usual `./configure && make && sudo
make install` rigmarole.
If you're interested in using the lastest development version, try:
git clone https://github.com/stedolan/jq.git
cd jq
autoreconf -i
2015-08-15 23:12:31 -07:00
./configure --disable-maintainer-mode
2013-05-19 10:48:25 +01:00
make
sudo make install
2012-09-18 17:51:53 +01:00
To build it from a git clone, you'll need to install a few
packages first:
2015-08-15 12:07:00 -07:00
* [GCC](https://gcc.gnu.org)
* [Make](https://www.gnu.org/software/make/)
* [Autotools](https://www.gnu.org/software/automake/)
2012-09-18 17:51:53 +01:00
For Linux systems, these will all be in your system's package
manager, and if you do development on the machine they're most
2012-12-07 14:40:20 +00:00
likely already installed.
2012-09-18 17:51:53 +01:00
2015-08-07 21:40:19 -07:00
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,
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
2015-08-15 12:07:00 -07:00
[MacPorts](https://macports.org/).
2015-08-15 23:12:31 -07:00
The `--disable-maintainer-mode` flag says to use the pre-generated lexer
and parser that come with the code. To compile the lexer and parser also
from source, leave out this flag. You will need to install
[Flex](http://flex.sourceforge.net/) and
[Bison](https://www.gnu.org/software/bison/).
2015-08-13 22:33:37 -07:00
#### Building the documentation
2012-09-18 17:51:53 +01:00
jq's documentation is compiled into static HTML using
[Bonsai](http://www.tinytree.info). To view the documentation
locally, run `rake serve` (or `bundle exec rake serve`) from the
docs/ subdirectory. To build the docs just `rake build` from the
docs subdirectory. You'll need a few Ruby 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 from
the YAML docs, and you'll still need the Ruby dependencies to
build the manpage.