本文介绍了如何在Mac上通过命令行安装JQ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要了解在Mac(el capitan)上安装JQ的最有效方法.该代码已下载到我的Mac,但是我想知道如何通过命令行安装和操作.
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 command line.
推荐答案
您可以在Mac上通过brew安装任何应用程序/软件包.如果您想知道确切的命令,只需在 https://brewinstall.org 上搜索您的软件包,即可获得一组安装该软件包所需的命令.
You can install any application/packages with brew on mac. If you want to know the exact command just search your package on https://brewinstall.org and you will get the set of commands needed to install that package.
首先打开终端并安装brew
First open terminal and install brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
现在安装jq
brew install jq
这篇关于如何在Mac上通过命令行安装JQ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!