ruby-on-rails - 在 ruby​​ 2.0.0p247 上安装 ruby​​-debug-base 时出错

标签 ruby-on-rails ruby rubygems

<分区>

我遇到了以下问题: 如何为 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),引用: How to use the debugger with Ruby 2.0?

关于ruby-on-rails - 在 ruby​​ 2.0.0p247 上安装 ruby​​-debug-base 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20081614/

相关文章:

c - C 库周围的 Ruby 扩展包装器无法加载已安装的库

ruby-on-rails - ActiveRecord/Rails 中的原子插入或增量

ruby-on-rails - Ruby on Rails 嵌套属性没有保存到数据库中?

ruby-on-rails - 将哈希常量克隆到新变量中,而不会在使用 .each block 更新时改变常量?

ruby - 使用 ruby​​ 识别阵列上的运行

ruby-on-rails - 错误包安装 postgresql : `mktmpdir' : parent directory is world writable but not sticky

ruby-on-rails - 用户未通过身份验证时重新路由自定义路由(Devise、rails gem)

HTML/CSS/Ruby on Rails header ,带有突出到页面内容中的 Logo

mysql - gem安装mysql失败

ruby-on-rails - 如何专门使用 "Elasticsearch"gem 将 elasticsearch 与 rails 应用程序集成