标签:
安装CocoaPods的时候 需要升级Ruby的版本 <= 2.2.0 然后升级 Ruby的时候又要更新 HomeBrew 直接执行 brew update 会爆以下错误
#$ brew update
Error: /usr/local is not writable. You should change the ownership
and permissions of /usr/local back to your user account:
sudo chown -R $(whoami) /usr/local
MacOSdeMacBook-Pro:~ MacOS$ sudo chown -R /usr/local
usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhv] [-R [-H | -L | -P]] :group file ...
原因:
brew update 对于 ‘/usr/local’ 这个目录没有修改权限
解决方案:
使用su用户更新
sudo brew update
MacOS ------>>brew update Error
标签:
原文地址:http://www.cnblogs.com/CnSey/p/5778579.html