Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 安装调试检查器0.0.2本机扩展时出错?_Ruby_Gem - Fatal编程技术网

Ruby 安装调试检查器0.0.2本机扩展时出错?

Ruby 安装调试检查器0.0.2本机扩展时出错?,ruby,gem,Ruby,Gem,尝试安装捆绑包时出现此错误。按照说明进行直接gem安装也会失败。此后,我从我的机器上删除了所有ruby(和项目代码),包括任何ruby配置,并重新安装了ruby、devkit和我的项目代码。我还在弄这个。不知道下一步该去哪里。大多数搜索都会找到特定于gem的解决方案,而这些解决方案在这里似乎并不适用。如果我能提供更多信息,请告诉我。谢谢 An error occurred while installing debug_inspector (0.0.2), and Bundler cannot c

尝试安装捆绑包时出现此错误。按照说明进行直接gem安装也会失败。此后,我从我的机器上删除了所有ruby(和项目代码),包括任何ruby配置,并重新安装了ruby、devkit和我的项目代码。我还在弄这个。不知道下一步该去哪里。大多数搜索都会找到特定于gem的解决方案,而这些解决方案在这里似乎并不适用。如果我能提供更多信息,请告诉我。谢谢

An error occurred while installing debug_inspector (0.0.2), and Bundler cannot
continue.
Make sure that `gem install debug_inspector -v '0.0.2'` succeeds before
bundling.

C:\TFS\Grange Commercial SEQ\White\Specifications>gem install debug_inspector -v
'0.0.2'
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
The system cannot find the path specified.
The system cannot find the path specified.
ERROR:  Error installing debug_inspector:
    ERROR: Failed to build gem native extension.

    C:/devl/Ruby/Ruby192/bin/ruby.exe extconf.rb

Gem files will remain installed in C:/devl/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems
/debug_inspector-0.0.2 for inspection.
Results logged to C:/devl/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/debug_inspector-
0.0.2/ext/debug_inspector/gem_make.out

我知道这个问题很老了。然而,我马上就发现了两个问题

Windows没有为ruby编译c依赖项的工具(默认情况下,或者使用ruby安装程序)。如果您想自己做,您可以查看:

另一个问题是,这个特定的gem不适用于ruby<2.0:并且您的ruby版本似乎是1.9.1


我会检查您的Gemfile.lock,看看哪些gem需要调试检查器。如果你可以不用它们,把它们拿出来,你的捆绑包就会成功。如果您必须拥有它们,请尝试运行linux虚拟机并将其用于您的开发。我个人的建议是Ubuntu:VirtualBox或VMWare Player。虚拟盒子是自由和开放源码软件,所以如果这是公司的作品,你必须使用它:。VMWare Player是免费供个人使用的,我更喜欢它的工作方式:

我在
windows 10 64
上使用
Ruby 2.2.4 64位
时遇到了相同的错误

在我的例子中,导致错误的原因是一个接一个地安装了多个ruby版本(尝试解决该错误)


最终,我通过运行
ruby dk.rb安装--force
(起初我没有使用
force
标志)解决了这个问题,正如所说的-确保使用正确的ruby版本-适合我的版本是
ruby 2.1.7 32位

请使用linux操作系统而不是windows 7/8/10