更新brew提示/usr/local must be writable!

给电脑用户加权限:
1.前往文件夹 /usr


更新brew提示/usr/local must be writable!_第1张图片
E4589352-D786-45B8-BA5A-4C9AC411A04E.png

2.找到local文件夹,右键显示简介,底部锁头解锁,加用户,应用到包含的项目

更新brew提示/usr/local must be writable!_第2张图片
0B35C84C-E370-4D50-8B47-5A72BCC80B22.png

搞定!!你可以愉快的装ruby了

重装 cocoapod -- http://blog.csdn.net/qtds8810/article/details/50510910

cocoapod 更换镜像源
先查看当前镜像源: gem source -l

LomodeMacBook-Air:~ lomo$ gem source -l
*** CURRENT SOURCES ***

https://ruby.taobao.org/
LomodeMacBook-Air:~ lomo$ gem sources --add https://gems.ruby-china.org/
https://gems.ruby-china.org/ added to sources
LomodeMacBook-Air:~ lomo$ gem source -l
*** CURRENT SOURCES ***

https://ruby.taobao.org/
https://gems.ruby-china.org/
LomodeMacBook-Air:~ lomo$ gem source --remove https://ruby.taobao.org/
https://ruby.taobao.org/ removed from sources
LomodeMacBook-Air:~ lomo$ gem source -l
*** CURRENT SOURCES ***

https://gems.ruby-china.org/
LomodeMacBook-Air:~ lomo$ 

你可能感兴趣的:(更新brew提示/usr/local must be writable!)