brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件, 只需要一个命令, 非常方便
brew类似ubuntu系统下的apt-get的功能
以下是我自己安装的步骤方法
如图所示,第一步在终端输入
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
按回车后,出现400 bad request,安装失败。网上搜素,可能是网络的问题,但是连续试过几次 后依然不行,最后更改代码为
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
按回车,成功下载。
下载过程中可能会出现Password:,就按正常输密码就可以了。
等到出现以下代码时,表示brew下载成功
Receiving objects: 100% (120272/120272), 28.47 MiB | 148.00 KiB/s, done.
Resolving deltas: 100% (87898/87898), done.
Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run
brew help
to get started - Further documentation:
https://docs.brew.sh