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
Ruby Strftime: Month Without Leading Zero
Ruby Replace String with Captured Regex Pattern
Rails Collection_Select VS. Select
Is Ruby a Scripting Language or an Interpreted Language
Sidekiq List All Jobs [Queued + Running]
How to Return Http 204 in a Rails Controller
Rails Belongs_To Association (With :Class_Name) Returns Nil
Why Does Foreman Not Output Some Things Until I Press Control-C
How to Validate Associated Model Id
Uninstall Ruby Version from Rbenv
How to Log the Entire Trace Back of a Ruby Exception Using the Default Rails Logger
Passing Param Values to Redirect_To as Querystring in Rails
Rails Convert String to Number