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
How to Express Infinity in Ruby
Rails Carrierwave Base64 Image Upload
Net::Ssh Sudo Command Hangs After Entering Password
Finding If a Sentence Contains a Specific Phrase in Ruby
Render Three Different Partials Depending on Button Clicked
How to Push to Faye Server from Rails Controller
What's the Point of the Prefix? Operator in Ruby 1.9
Replace Words in a String - Ruby
How to Test Exception Raising in Rails/Rspec
Reading and Updating Yaml File by Ruby Code
How to Pass Data from a Controller to a Model with Ruby on Rails
Sort a Collection of Objects by Number (Highest First) Then by Letter (Alphabetical)
How to Customize the Table Builder Plugin for a Week Calendar
What Does "||=" Do in Ruby 1.9.2
Using $ Sudo Bundle Exec ... Raises 'Bundle: Command Not Found' Error