去这个地址找最近更新的homebrew地址:
这里会经常更新地址的http://brew.sh/index_zh-cn.html
找到地址执行类似如下命令:
localhost:~ lixianbiao$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
Password:
==> Downloading and installing Homebrew...
remote: Counting objects: 179778, done.
remote: Compressing objects: 100% (49768/49768), done.
remote: Total 179778 (delta 128932), reused 179666 (delta 128848)
Receiving objects: 100% (179778/179778), 35.60 MiB | 256.00 KiB/s, done.
Resolving deltas: 100% (128932/128932), done.
From https://github.com/Homebrew/homebrew
* [new branch] master -> origin/master
HEAD is now at 3c354e0 Use Pathname#subdirs
==> Installation successful!
==> Next steps
Run `brew doctor` before you install anything
Run `brew help` to get started