[英]An error occurred while installing debugger-linecache (1.1.1), and Bundler cannot continue
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 extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p194 provided with debugger-ruby_core_source gem.
**************************************************************************
I had this issue after updating to a newer patch version of ruby. 在更新到更新的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.
不幸的是,头文件gem“debugger-ruby_core_source”被锁定在Gemfile.lock中的早期版本中,因此它没有所需的头文件。
All you need to do is update that gem by doing: 您需要做的就是通过执行以下操作来更新gem:
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: 如果您没有使用bundler,那么只需在尝试安装调试器之前安装最新版本:
gem install debugger-ruby_core_source
Another option is to switch to using ruby p125
, eg 另一个选择是切换到使用ruby
p125
,例如
rvm install 1.9.3-p125
rvm use 1.9.3-p125 --default
I had ruby 1.9.3-p194 and apparently that doesn't have the debug/linecache I need. 我有ruby 1.9.3-p194,显然没有我需要的调试/ linecache。
open terminal, go to project directory and remove Gemfile.lock using 打开终端,转到项目目录并使用删除Gemfile.lock
rm Gemfile.lock
to remove Gemfile.lock and run 删除Gemfile.lock并运行
bundle install
which will create new Gemfile.lock so its easy to do it :) 这将创建新的Gemfile.lock所以它很容易做到:)
worked for me. 为我工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.