Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No source for ruby-1.9.2-p321 provided with debugger-ruby_core_source gem

I recently updated to Mavericks. Added Command Line tools for xcode. Tried "bundle update debugger", along with every other fix I found, including this rake add_source to include the appropriate header found here:http://sponsorpay.github.io/blog/2012/06/11/ruby-debugger-and-no-source-for-ruby-error/, and I still cannot push my project to heroku without errors. Any help is appreciated. Thanks in advance.

Update: Found this but not sure how to do it. "Gems such as debugger-linecache require explicit patch levels of Ruby, this is fine for development, but should not be used in production. If you have one of these Gems in production and the patch of Ruby gets upgraded your deploy will fail.

The fix is to move your dependency out of the production group of your Gemfile." Here's the error:

Installing debugger-linecache (1.2.0) Installing debugger-ruby_core_source (1.2.4) Installing debugger (1.6.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

   /tmp/ruby-1.9.2/bin/ruby extconf.rb
   checking for rb_method_entry_t.body in method.h... no
   checking for vm_core.h... no
   checking for rb_method_entry_t.body in method.h... no
   checking for vm_core.h... no
   Makefile creation failed
   **************************************************************************
   No source for ruby-1.9.2-p321 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=/tmp/ruby-1.9.2/bin/ruby
   --with-ruby-dir
   --without-ruby-dir
   --with-ruby-include
   --without-ruby-include=${ruby-dir}/include
   --with-ruby-lib
   --without-ruby-lib=${ruby-dir}/lib


   Gem files will remain installed in /tmp/build_3f34841b-c8ae-4ac7-a6ff-9cdb26e947fa/vendor/bundle/ruby/1.9.1/gems/debugger-1.6.3 for inspection.
   Results logged to /tmp/build_3f34841b-c8ae-4ac7-a6ff-9cdb26e947fa/vendor/bundle/ruby/1.9.1/gems/debugger-1.6.3/ext/ruby_debug/gem_make.out
   An error occurred while installing debugger (1.6.3), and Bundler cannot
   continue.
   Make sure that `gem install debugger -v '1.6.3'` succeeds before bundling.

! ! Failed to install gems via Bundler. !

! Push rejected, failed to compile Ruby app

like image 813
user1978695 Avatar asked Nov 10 '22 16:11

user1978695


1 Answers

I added this to my gemfile

gem 'debugger', group: [:development, :test] 

to my gem file.

Removed my gem lock file with rm Gemfile.lock. Ran bundle install, and the push succeeded.

like image 159
user1978695 Avatar answered Nov 14 '22 22:11

user1978695