When I run
$ gem install cocoapods
I get
Fetching: i18n-0.7.0.gem (100%) ERROR: While executing gem ... (Gem::FilePermissi
You need to 'update Gems'. Open terminal, then do this
sudo gem update
That's enough.