在ruby 2.0.0p247上安装ruby-debug-base时出错 [英] error in install ruby-debug-base on ruby 2.0.0p247
本文介绍了在ruby 2.0.0p247上安装ruby-debug-base时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到以下问题:
如何为ruby安装调试器
I am running into the following issue: how to install debugger for 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> 1.8.x,您必须使用另一个gem显然(byebug),ref:
如何在Ruby 2.0中使用调试器?
for ruby > 1.8.x you have to use another gem apparently (byebug), ref: How to use the debugger with Ruby 2.0?
这篇关于在ruby 2.0.0p247上安装ruby-debug-base时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文