首页 > 代码库 > OS X上修复The current contents of /usr/local are bin Cellar

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/

OS X上修复The current contents of /usr/local are bin Cellar