重複の可能性:
Rails3.1およびRuby1.9.3p125:ruby-debug19は、「シンボルが見つかりません:_ruby_threadptr_data_type」でクラッシュします。
コンソールへの印刷は終了です。20世紀に移行してデバッガーを使い始めたいです。しかし、ruby-debugをインストールするにはどうすればよいですか?ruby-debug.c
ruby-debug19 gemをインストールしようとすると、のネイティブコンパイルが失敗します。他のSOの投稿を調べましたが、まだ答えが見つかりません...
- Ruby1.9.3-p0を使用しています
- Rails 3.2を使用しています(もちろんGemfileを使用)
- 私はRVMを使用していません-代わりに、すべての実行可能ファイル、gem、ソースなどを含む完全にサンドボックス化されたディレクトリがあります。以下では$SANDBOXと呼びます...
バンドルインストールが機能しない
Ruby-debug19をGemfileに追加して実行するとbundle install
、ビルド中に次のコマンドで失敗しますconflicting types for 'rb_iseq_compile_with_option'
。
# file: Gemfile
...
group :development do
gem 'ruby-debug19'
end
...
% bundle install
...
Installing ruby-debug-base19 (0.11.25) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/r/Developer/Topaz/usr/bin/ruby extconf.rb
...
ruby_debug.c:29: error: conflicting types for 'rb_iseq_compile_with_option'
$SANDBOX/usr/include/ruby-1.9.1/ruby-1.9.3-p0/vm_core.h:505: error: previous declaration of 'rb_iseq_compile_with_option' was here
...
make: *** [ruby_debug.o] Error 1
コマンドラインからのgeminstallruby-debugが機能しない
include
現在のrubyのディレクトリを指す--with-ruby-include引数を使用して、コマンドラインからgemをビルドしようとすると、同じエラーが発生します。
% gem install ruby-debug19 -- --with-ruby-include=$SANDBOX/packages/ruby-1.9.3-p0
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.
$SANDBOX/usr/bin/ruby extconf.rb --with-ruby-include=$SANDBOX/packages/ruby-1.9.3-p0/include
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
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:29: error: conflicting types for 'rb_iseq_compile_with_option'
$SANDBOX/usr/include/ruby-1.9.1/ruby-1.9.3-p0/vm_core.h:505: error: previous declaration of 'rb_iseq_compile_with_option' was here
私は何が欠けていますか?
--with-ruby-includeは何か違うことを期待していますか?現在のruby-debug19は壊れていますか?