No source for ruby-1.9.3-p374 provided with debugger-ruby_core_source gem

After updating Ruby to 1.9.3-374 debugger stopped working:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/mencio/.rvm/rubies/ruby-1.9.3-p374/bin/ruby extconf.rb 
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p374 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
	--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=/home/mencio/.rvm/rubies/ruby-1.9.3-p374/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 /path/gems/debugger-linecache-1.1.2 for inspection.
Results logged to /path/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out
An error occurred while installing debugger-linecache (1.1.2), and Bundler cannot continue.
Make sure that `gem install debugger-linecache -v '1.1.2'` succeeds before bundling.

How can we fix this?

gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=\$rvm_path/src/ruby-1.9.3-p374

And that's all!

Categories: Hosting, Linux, Rails, Ruby, Software

7 Comments

  1. This was extremely well timed for me! I just finished installing rvm which installs the latest ruby and got this same issue.

    Thank you so much for posting.

  2. Cilantro Jackson

    January 25, 2013 — 04:03

    worked beautifully. thanks

  3. Nelson M. Haraguchi (@n2m8)

    February 5, 2013 — 20:33

    Thanks for sharing this! Solved my Issue!

  4. Fredrik Rubensson

    February 7, 2013 — 10:54

    excellent!

  5. David Martinez

    April 19, 2013 — 21:03

    Thanks! Fixed my deployment!

  6. For RBENV
    –with-ruby-include=$HOME/.rbenv/sources/2.0.0-p353/ruby-2.0.0-p353

    If you don’t have sources, install with ‘–keep’ option
    rbenv install –keep 2.0.0-p353

  7. Cheers mate, y’re a legend. Still helpful, works with 1.9.2-p136

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Copyright © 2024 Closer to Code

Theme by Anders NorenUp ↑