Error installing debugger: Failed to build gem native extension with ruby-1.9.3-p362 Error installing debugger: Failed to build gem native extension with ruby-1.9.3-p362 ruby ruby

Error installing debugger: Failed to build gem native extension with ruby-1.9.3-p362


I ran into same issue. I tried:

bundle update debugger

My Gemfile had this:

gem 'debugger'

And it worked, I did not have to change Gemfile. Output of bundle shows something like this

...

Installing debugger-ruby_core_source (1.1.6)

Installing debugger-linecache (1.1.2) with native extensions

Installing debugger (1.1.4) with native extensions

...


The solution to the problem was to simply to install the debugger-ruby_core_source gem - a forked version of debugger-ruby_core_source by eiel on github.

After much trial and error (on my part), I simply

gem install debugger-ruby_core_source -v '1.1.6'

which force the inclusion of the p362 headers. Then when I ran bundle, debugger was successfully built with the native extensions, and bundler continued on it's merry way and so was I.

Just a note, while I've used simply several times, I tried several things and spent several hours to get this to work before I actually came to the simple solution.


Maybe it better use the bundle update, worked fine here.

$ bundle update debugger-ruby_core_source

Consider to use update to all debugger gems:

$ bundle update debugger