首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ruby-调试-base19 19:生成失败

ruby-调试-base19 19:生成失败
EN

Stack Overflow用户
提问于 2013-07-28 16:37:25
回答 1查看 365关注 0票数 1

我运行了以下命令来安装gems

代码语言:javascript
复制
bundle install --without production

它启动安装,直到到达ruby-调试-base19 19 .When为止,它试图安装它,如果出现以下错误

代码语言:javascript
复制
Installing ruby-debug-base19 (0.11.25)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/bin/ruby.exe extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
/usr/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
gcc -I. -I/usr/include/ruby-1.9.1/i386-cygwin -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_VM_CORE_H -DHAVE_ISEQ_H -DHAVE_INSNS_INC -DHAVE_INSNS_INFO_INC -DHAVE_EVAL_INTERN_H -I/usr/include/ruby-1.9.1/ruby-1.9.3-p429 -ggdb -O2 -pipe   -fno-strict-aliasing  -o breakpoint.o -c breakpoint.c
gcc -I. -I/usr/include/ruby-1.9.1/i386-cygwin -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -DHAVE_VM_CORE_H -DHAVE_ISEQ_H -DHAVE_INSNS_INC -DHAVE_INSNS_INFO_INC -DHAVE_EVAL_INTERN_H -I/usr/include/ruby-1.9.1/ruby-1.9.3-p429 -ggdb -O2 -pipe   -fno-strict-aliasing  -o ruby_debug.o -c ruby_debug.c
ruby_debug.c:29:19: error: conflicting types for ‘rb_iseq_compile_with_option’
In file included from ruby_debug.c:4:0:
/usr/include/ruby-1.9.1/ruby-1.9.3-p429/vm_core.h:506:7: note: previous declaration of ‘rb_iseq_compile_with_option’ was here
Makefile:206: recipe for target `ruby_debug.o' failed
make: *** [ruby_debug.o] Error 1


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

An error occurred while installing ruby-debug-base19 (0.11.25), and Bundler cannot continue.
Make sure that `gem install ruby-debug-base19 -v '0.11.25'` succeeds before bundling.

造成这一错误的原因是什么,如何解决?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-07-28 16:50:33

ruby-debug19不再被维护。

但还有一个选择:

debugger

打开你的档案

看看有没有这样的东西..。

代码语言:javascript
复制
gem 'ruby-debug19', :require => 'ruby-debug'

将其注释掉,并使用“调试器”代替

代码语言:javascript
复制
#gem 'ruby-debug19', :require => 'ruby-debug'
gem 'debugger'

它包含在rails Gemfile中,从3.2开始,就可以替换ruby-debug19了。它具有完全相同的功能,并被积极维护。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17910400

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档