I am trying to install cocoapods to my MacBook Pro running with OSX 10.9.1 (new Mavericks) and after type gem install cocoapods I get the following error:
I fixed the problem by using ruby 2.0 (which is the preferred way on mavericks) or greater. In case you are using rvm just change to the correct ruby with:
rvm use ruby-2.0
After that gem install cocoapods worked correctly. To be more specific, I was using:
OSX 10.9.2
ruby-2.0.0-p353
cocoapods-0.32.1