An Error Occurred While Installing Debugger-Linecache (1.1.1), and Bundler Cannot Continue

An error occurred while installing debugger-linecache (1.1.1), and Bundler cannot continue

I had this issue after updating to a newer patch version of ruby. Unfortunately the header files gem "debugger-ruby_core_source" was locked in to an earlier version in the Gemfile.lock so it didn't have the required header files.

All you need to do is update that gem by doing:

bundle update debugger-ruby_core_source

You should be able to bundle install afterwards.

If you aren't using bundler then just install the latest version before trying to install debugger:

gem install debugger-ruby_core_source

Error installing debugger-linecache: ERROR: Failed to build gem native extension

I had a very similar error, but on ruby 1.9.3. Running:

gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p286/

Got it working for me. Credit to this answer.

Ruby on Rails - linecache error while trying to ' bundle install '

You should try installing linecache19 instead of linecache. The gem you are trying to install is incompatible with Ruby version 1.9.2.

This is also suggested by the error message:

Can't handle 1.9.x yet

Error installing linecache19

force the Gemfile to use these version

gem 'linecache19', '0.5.13', :path => "~/.rvm/gems/ruby-1.9.3-p0/gems/linecache19-0.5.13/"

and then bundle install

Bundler fails to install debugger 1.6.8

debugger gem doesn't work with Ruby 2.1+. Instead try byebug.



Related Topics



Leave a reply



Submit