installing ruby-debug with ruby 1.9.x says …Can’t handle 1.9.x yet…
Today I was trying to install ruby-debug gem under ruby version ruby-1.9.2-p290 I got the following error
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/sameera/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
Can’t handle 1.9.x yet
*** 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=/home/sameera/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
so it appears to be that, ruby-debug is not compatible with ruby 1.9.x, So after some gooling I found a simple solution its the ‘debugger’ (https://github.com/cldwalker/debugger), So simply in your Gemfile add the following line
gem ‘debugger’
instead of
gem ‘ruby-debug’
:)