【问题标题】:error in install ruby-debug-base on ruby 2.0.0p247 [duplicate]在 ruby​​ 2.0.0p247 上安装 ruby​​-debug-base 时出错 [重复]
【发布时间】:2013-11-19 20:43:28
【问题描述】:

我遇到了以下问题: 如何为 ruby​​ 安装调试器

C:\windows\system32>ruby -v
ruby   (2013-06-27) [i386-mingw32]

C:\windows\system32>gem install ruby-debug-base
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-base:
    ERROR: Failed to build gem native extension.

C:/Ruby200/bin/ruby.exe extconf.rb
Can't handle 1.9.x yet
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary   
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=C:/Ruby200/bin/ruby


Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/linecache
-0.46 for inspection.
Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/linecache-0.46/ext/gem_mak
e.out

【问题讨论】:

    标签: ruby-on-rails ruby rubygems


    【解决方案1】:

    对于 ruby​​ > 1.8.x,您显然必须使用另一个 gem(byebug),参考: How to use the debugger with Ruby 2.0?

    【讨论】:

    • 不要简单地链接到答案中的另一个问题,而是投票/标记以关闭为重复。
    • @AndrewMarshall 我不相信我在写它的时候有投票/标记权:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多