macOs路径/usr/local/Cellar/ruby
Last login: Fri Jul 15 09:03:37 on console
LiXiaoFangdeMac-mini:~ lxf$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
The current contents of /usr/local are bin Cellar CODEOFCONDUCT.md CONTRIBUTING.md etc include lib Library LICENSE.txt opt README.md share SUPPORTERS.md .git .gitignore
LiXiaoFangdeMac-mini:~ lxf$ brew install ruby
==> Downloading https://homebrew.bintray.com/bottles/ruby-2.2.3.el_capitan.bottl
######################################################################## 100.0%
==> Pouring ruby-2.2.3.el_capitan.bottle.tar.gz
�� /usr/local/Cellar/ruby/2.2.3: 1080 files, 20M
LiXiaoFangdeMac-mini:~ lxf$ ruby -v
ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-darwin14.5.0]
LiXiaoFangdeMac-mini:~ lxf$