Can't install ruby-debug?
Has anyone else encountered this?
gem install ruby-debug
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.
/Users/ohad/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb
Can't handle 1.9.x yet
*** extconf.rb failed ***
I use gemset in case it has anything to do with it.
source to share
The only debugger that works for me so far is a gem debugger
found at https://github.com/cldwalker/debugger
Put gem 'debugger'
in Gemfile or install it for development only.
group :development do
gem 'debugger'
end
I tried a couple of other options (which all failed) before landing on the debugger
gem. In particular, ruby-debug
and ruby-debug19
( https://github.com/denofevil/ruby-debug19 ).
ruby-debug
failed to install. While ruby-debug19
installing, I got an error require 'ruby-debug' ; Debugger.start
.
Here is my environment:
ruby 1.9.3p374 (2013-01-15 revision 38858) [i686-linux]
Rails 3.2.11
Ubuntu 12.04.2 LTS 32bit
source to share
You need to use the version ruby-debug19
as the "regular" version is incompatible with Ruby 1.9:
gem install ruby-debug19
Check the gems project page for more information .
source to share