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:
gem install cocoapods
brew reinstall ruby
Add the below to your path
export PATH="/usr/local/opt/ruby/bin:$PATH"
If needed add these flags.
export LDFLAGS="-L/usr/local/opt/ruby/lib" export CPPFLAGS="-I/usr/local/opt/ruby/include"