8

Ruby-Debug Gem を Windows にインストールできません。このエラーはどういう意味ですか? どうすればこれを修正できますか? ありがとう

C:\Users\Steve>gem install ruby-debug
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.
C:/Ruby19/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:/Ruby19/bin/ruby
Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/linecache-
0.43 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/linecache-0.43/ext/gem_make
.out 

私は次の宝石を持っています:

actionpack (2.3.5, 2.3.3)
activerecord (2.3.5, 2.3.3)
activeresource (2.3.5, 2.3.3)
activesupport (2.3.5, 2.3.3)
columnize (0.3.1)
json_pure (1.2.0)
rack (1.0.1)
rails (2.3.5, 2.3.3)
rake (0.8.7)
rmagick (1.14.1)
rubyforge (2.0.3)
rubygems-update (1.3.5)
sqlite3-ruby (1.2.5) 
with rails version 3.3.5
4

7 に答える 7

19

以下のコマンドとその動作を実行します

C:\ Users \ Steve> gem install ruby​​-debug --platform = mswin32

于 2010-09-22T20:25:17.193 に答える
12

私は同じ問題に遭遇しました。次の手順で完了します。

  1. RubyInstallerを使用してrubyをインストールします
  2. 開発キットをインストールします
  3. ruby-debugの代わりにruby-debug19をインストールします。

    gem install ruby​​-debug19

于 2010-03-04T22:23:32.053 に答える
3

実行: gem install ruby​​-debug19

より詳しい情報...

于 2009-12-29T01:58:34.910 に答える
2

1.9.2 および 1.9.3 で動作するこの ruby​​-debug のポートは、私にとってはうまくいきました。入力するだけ

gem install debugger
于 2013-01-03T21:09:02.347 に答える
1

エラーは明らかなようです:

Can't handle 1.9.x yet

*** extconf.rb failed ***

Ruby1.9.x上のRuby1.8.xとのみ互換性のあるruby-debuggemをインストールしようとしています。

Ruby1.9.xと互換性のあるruby-debug19をインストールしてください

gem install ruby-debug19
于 2011-08-11T01:42:00.327 に答える
1

また、これを試すことができます:

gem install ruby-debug-ide --platform=ruby --pre
于 2012-10-19T17:26:53.490 に答える
1

この答えが私にとって最も簡単に機能することがわかりました: http://github.com/oneclick/rubyinstaller/wiki/development-kit

于 2010-10-25T21:50:16.500 に答える