How to install JQ on Mac by command-line?

前端 未结 5 641
长发绾君心
长发绾君心 2021-01-31 13:09

I need to know the most efficient way of installing JQ on Mac (el capitan). The code is downloaded to my mac but I would like to know how I can install and operate the via the c

5条回答
  •  孤独总比滥情好
    2021-01-31 13:49

    On a Mac, the "most efficient" way to install jq would probably be using homebrew, e.g.

    brew install jq
    

    If you want the development version, you could try:

    brew install --HEAD jq
    

    but this has various pre-requisites.

    Detailed instructions are on the "Installation" page of the jq wiki: https://github.com/stedolan/jq/wiki/Installation

    The same page also includes details regarding installation from source, and has notes on installing with MacPorts.

提交回复
热议问题