OS X上修复The current contents of /usr/local are bin Cellar
$ sudo rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
如果出现error: unable to create file Library/Homebrew/README.md (Permission denied)之类的异常,就使用
$ sudo chown -R $USER /usr/local
$ sudo chown -R $USER /usr/local; brew update
OS X 升级Ruby
brew install ruby
ror 使用步骤
http://api.rubyonrails.org/
posted on 2016-09-06 11:15 Questionfeet 阅读(223) 评论(0) 编辑 收藏 举报