gpt4 book ai didi

ruby - 安装 debug_inspector 0.0.2 native 扩展时出错?

转载 作者:数据小太阳 更新时间:2023-10-29 08:48:56 24 4
gpt4 key购买 nike

尝试进行捆绑安装时出现此错误。按照说明进行直接 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​​ 安装程序)为 ruby​​ 编译 c 依赖项。如果您想自己做,您可以查看:http://rubylearning.com/blog/how-do-i-install-a-ruby-gem-with-native-extensions-on-windows/

另一个问题是这个特殊的 gem 不适用于 ruby​​ < 2.0: https://github.com/banister/debug_inspector并且您的 ruby 版本似乎是 1.9.1

我会检查您的 Gemfile.lock 以查看哪些 gems 需要调试检查器。如果你可以不用它们,把它们拿出来,你的 bundle 就会成功。如果您必须拥有它们,请尝试运行 Linux VM 并将其用于您的开发。我个人的建议是 Ubuntu:http://www.ubuntu.com/download/desktop和 VirtualBox 或 VMWare Player。 Virtual Box 是 FOSS,因此如果这是公司工作,您将不得不使用它:https://www.virtualbox.org/ . VMWare Player 供个人免费使用,我更喜欢它的工作方式:http://www.vmware.com/products/player

关于ruby - 安装 debug_inspector 0.0.2 native 扩展时出错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18771672/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com