ruby - JetBrains RubyMine 3.2.4 调试器不工作

标签 ruby debugging rubygems rubymine

使用 Ruby 1.9.2 运行

IDE 提示说需要 gem ruby​​-debug-base19x 并提供安装它。

但是,在尝试安装它时会显示消息

Failed to install gems. Following gems were not installed: C:/Program Files (x86)/JetBrains/RubyMine 3.2.4/rb/gems/ruby-debug-base19x-0.11.30.pre2.gem: Error installing ruby-debug-base19x-0.11.30.pre2.gem: The 'linecache19' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' C:/Program Files (x86)/JetBrains/RubyMine 3.2.4/rb/gems/ruby-debug-ide-0.4.17.beta8.gem: Error installing ruby-debug-ide-0.4.17.beta8.gem: The 'ruby-debug-ide' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' linecache19 (0.5.12): Error installing linecache19: The 'linecache19' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

我按照它的建议下载了 DevKit - 但是 DevKit 在尝试安装时说它已经作为 Ruby 的一部分正确安装了。

有什么建议吗?

最佳答案

问题不是 RubyMine 特有的,我会尝试从头开始重新安装 Ruby 和 DevKit。 使用 installation guide 中的测试验证 DevKit 是否确实有效:

gem install rdiscount --platform=ruby
ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"

如果工作正常,请尝试使用以下命令从控制台手动安装调试 gem:

gem install ruby-debug-base19x --pre
gem install ruby-debug-ide --pre

发布日志,如果仍然不适合您,请提供更多详细信息。

关于ruby - JetBrains RubyMine 3.2.4 调试器不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8343617/

相关文章:

c - 在C中合并多个排序数组

c# - 如何检测 Visual Studio 中未处理的异常?

ruby - Pod setup 找不到 cocoapods

python - 是否有相当于 ActiveRecord 的 find( :include) in Elixir/SQLAlchemy?

ruby - 使用 RVM 使用 sinatra 应用程序加载 Active Record gem 时出错

ruby-on-rails - 如何将时间移动(而不是转换)到新时区?

ruby-on-rails - 为什么 Heroku 拒绝这个 git push?

python - 如何确保 python 函数不依赖于外部变量?

ruby - 无法激活 aws-sdk-v1-1.67.0,因为 json-2.1.0 与 json (~> 1.4) 冲突 (Gem::ConflictError)

ruby-on-rails - 如何在没有 nokogiri "rails console"错误的情况下在 Mac 上运行 "cannot load such file -- nokogiri/nokogiri (LoadError)"?