自定义GEM_HOME
$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:$HOME/Sofware/ruby/bin
$ pod --version
0.37.2
本文转自 卓行天下 51CTO博客,原文链接:http://blog.51cto.com/9951038/1747914,如需转载请自行联系原作者