summaryrefslogtreecommitdiffstats
path: root/docs/content/2.download/default.yml
blob: 502ef0b41e68d8831ee20a8d03fe20d385275ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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`.

      jq is licensed under the MIT license. For all of the gory
      details, read the file `COPYING` in the source distribution.


      ### Linux
      
       * Binaries for [64-bit](linux64/jq) or [32-bit](linux32/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).

       * Debian/Ubuntu packages are coming Real Soon Now.

      ### OS X

       * `brew install jq` using [homebrew](http://mxcl.github.com/homebrew/)

       * Or, grab prebuilt [64-bit binaries](osx64/jq) or [32-bit
         binaries](osx32/jq)

      ### Windows

       * Executables for [64-bit](win64/jq.exe) or [32-bit](win32/jq.exe)

      ### From source on Linux or OS X

          git clone https://github.com/stedolan/jq.git
          cd jq
          make && sudo make install

      To build it from a git clone, you'll need to install a few
      packages first:

       * [Flex](http://www.gnu.org/software/flex/)
       * [Bison](http://www.gnu.org/software/bison/)
       * [Python](http://www.python.org)
       * [GCC](http://gcc.gnu.org)
       * [Make](http://www.gnu.org/software/make)

      For Linux systems, these will all be in your system's package
      manager, and if you do development on the machine they're most
      likely already installed.

      On OS X, these are all included in Apple's command line tools, which
      can be installed from [Xcode](http://developer.apple.com/technologies/tools/).
      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://mxcl.github.com/homebrew/)
      or [MacPorts](http://macports.org/).

      `flex` and `bison` are used to generate the lexer and parser for
      jq, and some python scripts generate the UTF8 encoding tables
      needed for JSON parsing.
   
      #### Building the documentation

      jq's documentation is compiled into static HTML using
      [Bonsai](http://www.tinytree.info). To view the documentation
      locally, run `rake serve` from the docs/ subdirectory.