When I run
$ gem install cocoapods
I get
Fetching: i18n-0.7.0.gem (100%) ERROR: While executing gem ... (Gem::FilePermissi
This is the solution when you are receiving the "Operation not permitted" error.
$ mkdir -p $HOME/Software/ruby $ export GEM_HOME=$HOME/Software/ruby $ gem install cocoapods [...]