title: No source for ruby-2.0.0-p451 provided with debugger-ruby_core_source gem
body: <p>I've seen very similar problems in other SO questions (e.g. <a href="https://stackoverflow.com/questions/20461846/no-source-for-ruby-1-9-2-p321-provided-with-debugger-ruby-core-source-gem">No source for ruby-1.9.2-p321 provided with debugger-ruby_core_source gem</a>) as well as through a Google search, but none of those have helped so far.</p>
  
  <p>I'm using OSX Mavericks (first time mac user) and rbenv (first time using that too). I've git cloned a Rails project which I've previously ran on another laptop (Ubuntu &amp; rvm) fine.</p>
  
  <p><code>rbenv version</code>: 2.0.0-p451 (which I manually installed)</p>
  
  <p>When I try to <code>bundle install</code>, I get the following:</p>
  
  <pre><code>...
  Using debugger-ruby_core_source (1.3.1)
  
  Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
  
      /Users/macuser/.rbenv/versions/2.0.0-p451/bin/ruby extconf.rb 
  checking for rb_method_entry_t.called_id in method.h... no
  checking for rb_control_frame_t.method_id in method.h... no
  checking for rb_method_entry_t.called_id in method.h... no
  checking for rb_control_frame_t.method_id in method.h... no
  Makefile creation failed
  **************************************************************************
  No source for ruby-2.0.0-p451 provided with debugger-ruby_core_source gem.
  **************************************************************************
  *** extconf.rb failed ***
  Could not create Makefile due to some reason, probably lack of necessary
  libraries and/or headers.  Check the mkmf.log file for more details.  You may
  need configuration options.
  
  Provided configuration options:
      --with-opt-dir
      --without-opt-dir
      --with-opt-include
      --without-opt-include=${opt-dir}/include
      --with-opt-lib
      --without-opt-lib=${opt-dir}/lib
      --with-make-prog
      --without-make-prog
      --srcdir=.
      --curdir
      --ruby=/Users/macuser/.rbenv/versions/2.0.0-p451/bin/ruby
      --with-ruby-dir
      --without-ruby-dir
      --with-ruby-include=${ruby-dir}/include
      --with-ruby-lib
      --without-ruby-lib=${ruby-dir}/
  
  
  Gem files will remain installed in /Users/macuser/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/debugger-1.6.5 for inspection.
  Results logged to /Users/macuser/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/debugger-1.6.5/ext/ruby_debug/gem_make.out
  An error occurred while installing debugger (1.6.5), and Bundler cannot continue.
  Make sure that `gem install debugger -v '1.6.5'` succeeds before bundling.
  </code></pre>
  
  <p>So I then tried running <code>gem install debugger -v '1.6.5'</code>, which throws basically the same error as above.</p>
  
  <p>From searching around, here's some things I've unsuccessfully tried:</p>
  
  <ol>
  <li><p><a href="http://sponsorpay.github.io/blog/2012/06/11/ruby-debugger-and-no-source-for-ruby-error/" rel="nofollow noreferrer"><code>rake add_source</code></a></p></li>
  <li><p><a href="https://github.com/cldwalker/debugger/issues/63" rel="nofollow noreferrer"><code>bundle update debugger</code></a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/20461846/no-source-for-ruby-1-9-2-p321-provided-with-debugger-ruby-core-source-gem">Resetting gemfile.lock</a></p></li>
  <li><p><a href="http://blog.houen.net/fix-gem-install-debugger/" rel="nofollow noreferrer"><code>gem install debugger-ruby_core_source</code></a></p></li>
  </ol>
  
  <p>and probably some others too... but nothing seems to work.</p>
  
  <p><strong>Update: Switched my rbenv local environment to ruby 2.1.0 and it worked. Didn't fix the underlying problem, but this is fine I guess</strong></p>