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

前端 未结 3 1290
无人及你
无人及你 2021-01-30 18:10

Any idea how to fix this?

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/home/durrantm/.rvm/rubies/ruby-1.9.3-p194/bin/ruby          


        
3条回答
  •  情话喂你
    2021-01-30 18:29

    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
    

提交回复
热议问题