title: How do I install a cocoapod in mavericks with ruby and Command Line Tools correctly?
body: <p>This is my setup:</p>
  
  <p>Mavericks 10.9.1
  Xcode 5.0.2
  which ruby returns this:</p>
  
  <pre><code>/Users/quique123/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
  </code></pre>
  
  <p>but dvm install ruby returns: </p>
  
  <pre><code>Already installed ruby-2.1.0.
  To reinstall use:
  
      rvm reinstall ruby-2.1.0
  </code></pre>
  
  <p>So doesn't this mean I have ruby 2.1.0?</p>
  
  <p>gems list says I have installed cocoa pods &amp; cocoapods-core 0.29.0 and some other gems.</p>
  
  <p>After sudo gem install cocoa pods I get the bunch of fetches and change log and Successfully Installed cocoa pods 0.29.0.  It then parses and installs documentation and when I run pod setup I got:</p>
  
  <pre><code>Setting up CocoaPods master repo
  Setup completed (read-only access)
  </code></pre>
  
  <p>So I created a file from a tutorial:</p>
  
  <pre><code>platform :iOS, '7.0'
  pod 'Mantle'
  pod 'TSMessages'
  pod 'ReactiveCocoa'
  </code></pre>
  
  <p>but when I run pod install I get:</p>
  
  <pre><code>/Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:298:in `to_specs': Could not find 'cocoa pods' (&gt;= 0) among 37 total gem(s) (Gem::LoadError)
      from /Users/quique123/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:309:in `to_spec'
      from /Users/quique123/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:53:in `gem'
      from /Users/quique123/.rvm/rubies/ruby-1.9.3-p194/bin/pod:22:in `&lt;main&gt;'
  </code></pre>
  
  <p>How do I get the pod to install correctly and why am i getting messages of ruby 1.9.3?</p>