9

私は多くの解決策を試しましたが、何もうまくいかないようです!Ruby1.9.3とRails3.1.3を使用していて、ruby-debug19gemをインストールしたいと思います。これは私がPowerShellから得たものです:

PS C:\Users\**\**\**> gem install ruby-debug19
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug19:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for rb_method_entry_t.body in method.h... no
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
creating Makefile

make
generating ruby_debug-i386-mingw32.def
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:29:19: error: conflicting types for 'rb_iseq_compile_with_option'
C:/Ruby193/include/ruby-1.9.1/ruby-1.9.3-p0/vm_core.h:505:7: note: previous declaration of 'rb_iseq_compile_with_option' was here
ruby_debug.c: In function 'context_jump':
ruby_debug.c:2414:53: warning: comparison between signed and unsigned integer expressions
ruby_debug.c:2428:27: warning: comparison between signed and unsigned integer expressions
make: *** [ruby_debug.o] Error 1


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.25/ext/ruby_debug/gem_make.out
4

3 に答える 3

13

ruby-debug-base19x をインストールする際に同様の問題が発生しましたが、以下を使用して正常にインストールできました。

gem install ruby-debug-base19x -v 0.11.30.pre3

これは、pik ( https://github.com/vertiginous/pikを参照)、devkit ( https://github.com/oneclick/rubyinstaller/wiki/development-kitを参照)と共にウィンドウ 7 を実行している私の開発マシンで機能しました。およびルビー 1.9.3p0 / 1.9.2p290

インストール時に表示されるサンプルは次のとおりです。

C:\>gem install ruby-debug-base19x -v 0.11.30.pre3
Fetching: columnize-0.3.6.gem (100%)
Fetching: archive-tar-minitar-0.5.2.gem (100%)
Fetching: ruby_core_source-0.1.5.gem (100%)
Fetching: linecache19-0.5.12.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Fetching: ruby-debug-base19x-0.11.30.pre3.gem (100%)
Building native extensions.  This could take a while...
Successfully installed columnize-0.3.6
Successfully installed archive-tar-minitar-0.5.2
Successfully installed ruby_core_source-0.1.5
Successfully installed linecache19-0.5.12
Successfully installed ruby-debug-base19x-0.11.30.pre3
5 gems installed
Installing ri documentation for columnize-0.3.6...
Installing ri documentation for archive-tar-minitar-0.5.2...
Installing ri documentation for ruby_core_source-0.1.5...
Installing ri documentation for linecache19-0.5.12...
Installing ri documentation for ruby-debug-base19x-0.11.30.pre3...
Installing RDoc documentation for columnize-0.3.6...
Installing RDoc documentation for archive-tar-minitar-0.5.2...
Installing RDoc documentation for ruby_core_source-0.1.5...
Installing RDoc documentation for linecache19-0.5.12...
Installing RDoc documentation for ruby-debug-base19x-0.11.30.pre3...

これは私にとってはうまくいきましたが、物事を成し遂げるためにgemのプレリリースバージョンを使用しているという点で、それは動く目標です. リリースに目を光らせておくのが最善です。

執筆時点での現在のプレリリースは 0.11.30.pre6 であり、これは機能しないため、以下を実行するだけでは失敗することに注意してください。

gem install ruby-debug-base19x --pre
于 2012-01-20T04:40:55.593 に答える
2

Mac OS X rvm ruby​​ 1.9.3-p0 で同様の問題が発生しgem install ruby-debug-base19x --pre、そのトリックが実行されました。

これにより、トリックを行うように見えるpre10リリースがインストールされます。

于 2012-02-07T17:44:58.953 に答える
2

同様の質問がjetbrainsサイトで尋ねられ、その解決策がうまくいきました: http://devnet.jetbrains.com/message/5443846#5443846

新しい linecache19 gem をインストールする必要があります。

curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
gem install linecache19-0.5.13.gem

そして ruby​​-debug-base19x 経由

gem install --pre ruby-debug-base19x
于 2012-01-12T14:01:38.437 に答える