简体   繁体   English

安装debugger-linecache(1.1.1)时发生错误,Bundler无法继续

[英]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.

相关问题 debugger-linecache安装错误 - debugger-linecache install error 安装调试器时出错(1.6.8),Bundler无法继续。 确保`gem install debugger -v'1.6.8'` - Error occurred while installing debugger (1.6.8), and Bundler cannot continue. Make sure that `gem install debugger -v '1.6.8'` 安装atomic(1.1.16)时发生错误,Bundler无法继续 - An error occurred while installing atomic (1.1.16) and Bundler cannot continue 安装RedCloth(4.2.7)时发生错误,并且Bundler无法继续 - An error occurred while installing RedCloth (4.2.7), and Bundler cannot continue 安装mysql(2.9.1)时出错,Bundler无法继续 - An error occurred while installing mysql (2.9.1), and Bundler cannot continue 安装mysql(2.9.1)时发生错误,Bundler无法继续 - An error occurred while installing mysql (2.9.1) and Bundler cannot continue n在安装atomic(1.1.14)时发生错误,并且Bundler无法继续 - n error occurred while installing atomic (1.1.14), and Bundler cannot continue 安装curb(0.8.5)时发生错误,Bundler无法继续 - An error occurred while installing curb (0.8.5), and Bundler cannot continue 安装 json (1.7.6) 时出错,Bundler 无法继续。 - An error occurred while installing json (1.7.6), and Bundler cannot continue. 安装pg(0.15.1)时发生错误,Bundler无法继续 - error occurred while installing pg (0.15.1), and Bundler cannot continue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM