Gem Install Debugger Error

Error occurred while installing debugger (1.6.8), and Bundler cannot continue. Make sure that `gem install debugger -v '1.6.8'`

Please replace

gem 'pry-debugger'

with

gem 'pry-byebug'

Thanks!

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

...

How do I debug why a gem install fails?

Using the output from

$ gem install --backtrace ...

you can further do

$ byebug /home/tallakt/.rvm/rubies/ruby-2.0.0-p0/bin/gem install geoutm-1.0.1.gem

Inside byebyg type:

(byebug) break /home/tallakt/.rvm/gems/ruby-2.0.0-p0/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:171
Created breakpoint 1 at /home/tallakt/.rvm/gems/ruby-2.0.0-p0/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:171
(byebug) c

I am working on finding the bug in geoutm, but for now installation is possible using the

$ gem install -N geoutm

that skips RDoc generation

i'm unable to install gem debugger on rails 4.1.1

debugger isn't compatible with Ruby 2 and above, it's a known issue.

https://github.com/cldwalker/debugger/issues/125#issuecomment-43353446

The author recommends using byebug or debugger2 instead.

Cant install the debugger gem

I was having the same issue and this solved it for me:

gem update debugger-ruby_core_source

And then bundle install would work.

gem install debugger -v '1.5.0' fails

You better to use latest version of debugger, bc issue with your Ruby version was solved.

ruby: installing debugger

You're using an old prerelease version of Ruby that debugger doesn't support. The actual release version of Ruby 1.9.3 has been out for some time, and upgrading to Ruby 1.9.3-p194 (which debugger supports) will allow it to install.



Related Topics



Leave a reply



Submit