错误gem install debugger -v'1.6.8'

我试图绑定更新和捆绑安装,但我当我gem install debugger -v '1.6.8'我得到一个错误安装debugging器:错误:未能build立gem原生扩展。 它也说, make failed, exit code 2Gem files will remain installed in ....

我有ruby1.9.3p551和我创业板安装导轨3.2.19。 我在Windows上。

我已经尝试过bundle update debuggergem update debugger-ruby_core_source ,但都是最新的。 有谁知道如何解决这个问题?

当我运行bundle update debugger

 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. e:/Ruby193/bin/ruby.exe -r ./siteconf20150525-6232-uw5n6t.rb extconf.rb checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no checking for rb_method_entry_t.called_id in method.h... yes checking for vm_core.h... yes checking for iseq.h... yes checking for insns.inc... yes checking for insns_info.inc... yes checking for eval_intern.h... yes checking for struct iseq_line_info_entry in vm_core.h,iseq.h... no checking for struct iseq_insn_info_entry in vm_core.h,iseq.h... yes checking for if rb_iseq_compile_with_option was added an argument filepath... yes creating Makefile make clean Makefile:165: *** target pattern contains no `%'. Stop. make Makefile:165: *** target pattern contains no `%'. Stop. make failed, exit code 2 Gem files will remain installed in e:/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.6.8 for inspection. Results logged to e:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/debugger-1.6.8/gem_make.out An error occurred while installing debugger (1.6.8), and Bundler cannot continue. Make sure that `gem install debugger -v '1.6.8'` succeeds before bundling.` 

当我运行gem install debugger -v '1.6.8'

 Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing debugger: ERROR: Failed to build gem native extension. e:/Ruby193/bin/ruby.exe -r ./siteconf20150525-1772-grdsdf.rb extconf.rb checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no checking for rb_method_entry_t.called_id in method.h... yes checking for vm_core.h... yes checking for iseq.h... yes checking for insns.inc... yes checking for insns_info.inc... yes checking for eval_intern.h... yes checking for struct iseq_line_info_entry in vm_core.h,iseq.h... no checking for struct iseq_insn_info_entry in vm_core.h,iseq.h... yes checking for if rb_iseq_compile_with_option was added an argument filepath... yes creating Makefile make clean Makefile:165: *** target pattern contains no `%'. Stop. make Makefile:165: *** target pattern contains no `%'. Stop. make failed, exit code 2 Gem files will remain installed in e:/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.6.8 for inspection. Results logged to e:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/debugger-1.6.8/gem_make.out 

我得到它的工作。 由于RubyGems版本,错误出现了。 ruby 1.9.3似乎与1.8以上的RubyGems不兼容。 要解决这个问题,只需降级到RubyGems 1.8.29: gem update --system 1.8.29