无法安装ruby-debug-base19x宝石 [英] Can't install ruby-debug-base19x gem

查看:153
本文介绍了无法安装ruby-debug-base19x宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用RubyMine IDE安装ruby-debug-base19x gem进行调试时,我收到以下错误消息,有人可以帮助我吗?



'使用Mac OS X 10.7.4

  /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194 / bin / ruby​​ extconf.rb 
检查方法中的rb_method_entry_t.body ...否
检查vm_core.h ...否
/Users/danilobarsotti/.rvm/gems /ruby-1.9.3-p194/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39:使用RbConfig代替过时和不推荐使用的配置。
检查method.h中的rb_method_entry_t.body ...否
检查vm_core.h ...是
检查iseq.h ...是
检查insns .inc ...是
检查insns_info.inc ...是
检查eval_intern.h ...是
创建Makefile

make
编译breakpoint.c
编译ruby_debug.c
ruby​​_debug.c:24:错误:'rb_iseq_compile_with_option'的冲突类型
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3 -p194 / include / ruby​​-1.9.1 / ruby​​-1.9.3-p194 / vm_core.h:505:error:以前的'rb_iseq_compile_with_option'声明在这里
ruby​​_debug.c:在函数'call_at_line_unprotected'中:
ruby​​_debug.c:474:warning:隐式转换将64位值缩减为32位值
ruby​​_debug.c:在函数'filename_cmp'中:
ruby​​_debug.c:538:warning:隐式转换将64位值缩减为32位值
ruby​​_debug.c:539:warning:隐式转换将64位值缩减为32位值
ruby_debug.c:在函数'optional_frame_position'中:
ruby​​_debug.c:1695:warning:隐式转换将64位值缩减为32位值
ruby​​_debug.c:在函数'do_jump'中:
ruby​​_debug.c:2310:warning:隐式转换将64位值缩小为32位值
ruby​​_debug.c:在函数'context_jump'中:
ruby​​_debug.c:2378:warning:签名和未签名的
之间的比较ruby_debug.c:2392:warning:签名和未签名的
之间的比较make:*** [ruby_debug.o]错误1
/ pre>

编辑



当我尝试使用 RubyMine宝石工具(在RubyMine IDE中)我收到以下消息:


运行错误:myproject:无法安装Gems。
以下宝石未安装:
/Applications/RubyMine.app/rb/gems/ruby-debug-base19x-0.11.30.pre10.gem:
安装ruby-debug-base19x时出错-0.11.30.pre10.gem:错误:
无法构建宝石本机扩展。
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
检查method.h中的rb_method_entry_t.called_id ... * extconf。 rb
failed *
由于某些原因,无法创建Makefile,可能缺少
必需的库和/或标头。检查mkmf.log文件
更多的细节。您可能需要配置选项。提供
配置选项:--with-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 = / Users / danilobarsotti / .rvm / rubies / ruby​​-1.9.3-p194 / bin / ruby​​ --with-ruby-dir --without-ruby-dir --with-ruby-include - -without-ruby-include = $ {ruby-dir} / include --with-ruby-lib --without-ruby-lib = $ {ruby-dir} / lib /Users/danilobarsotti/.rvm/rubies/ruby- 1.9.3-p194 / lib / ruby​​ / 1.9.1 / mkmf.rb:381:in
try_do':编译器无法生成可执行文件。
(RuntimeError)您必须首先安装开发工具。从
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in
块在try_compile'从
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in
with_werror'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in
try_compile'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1002:in
<$ c $从
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in
中的c> block in has_struct_member' code> block in checking_for'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in $ b $从
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb中的b $ code> block(2 levels)in postpone 254:in
open'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb :284:in
block在推迟'从
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in
open'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in
postpone'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in
check_for'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1001:in
have_struct_member'from extconf.rb:6:in $ / code> block in'from
extconf.rb:31:in call from extconf.rb:31: in $ from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:527:in $中的
块b $ b with_cppflags'from extconf.rb:30:in '宝石文件将保留
安装在
/Users/danilobarsotti/.rvm/gems /ruby-1.9.3-p194/gems/ruby-debug-base19x-0.11.30.pre10
进行检查。结果记录到
/Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-base19x-0.11.30.pre10/ext/ruby_debug/gem_make.out
/Users/danilobarsotti/Library/Preferences/RubyMine40/rb/linecache19-0.5.13.gem:
安装linecache19-0.5.13.gem时出错:错误:无法构建gem
本机扩展。
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
检查vm_core.h ... * extconf.rb failed * 由于某种原因,无法创建
Makefile,可能缺少必需的库
和/或头。检查mkmf.log文件了解更多详细信息。您可能需要
配置选项。提供的配置选项:--with-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 = / Users / danilobarsotti / .rvm / rubies / ruby​​-1.9.3-p194 / bin / ruby​​ --with-ruby-dir --without-ruby-dir --with-ruby-include - -without-ruby-include = $ {ruby-dir} / include --with-ruby-lib --without-ruby-lib = $ {ruby-dir} / lib /Users/danilobarsotti/.rvm/rubies/ruby- 1.9.3-p194 / lib / ruby​​ / 1.9.1 / mkmf.rb:381:in
try_do':编译器无法生成可执行文件。
(RuntimeError)您必须首先安装开发工具。从
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:506:in
try_cpp 'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:931:in
block在
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in
block in check_for'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in
<$从
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in c $ c> block(2 levels)in postpone
open'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:在
block in postpone'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb: 254:in
open'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb :280:in
postpone'from
/ Us ers / danilobarsotti / .rvm / rubies / ruby​​-1.9.3-p194 / lib / ruby​​ / 1.9.1 / mkmf.rb:789:in
checking_for'from
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:930:in
have_header'from extconf.rb: 15:in $ / code> block in'from
/Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb: 18:in
call $ from
/Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/ruby_core_source-0.1.5/lib/ruby_core_source。 rb:18:in
create_makefile_with_core'from extconf.rb:19:在``宝石文件将
保持安装在
/Users/danilobarsotti/.rvm/ gems / ruby​​-1.9.3-p194 / gems / linecache19-0.5.13
进行检查。结果记录到
/Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/linecache19-0.5.13/ext/trace_nums/gem_make.out



解决方案

1)尝试从 http://rubyforge.org/frs/?group_id=8883



2)gem install linecache19-0.5.13.gem



3)gem install ruby​​-debug-base19-0.11.26.gem - --with-ruby- include = [你的红宝石源]
或者你可以尝试 gem install ruby​​-debug-base19x --pre


When I try to install ruby-debug-base19x gem for debug my application using the RubyMine IDE I received the below error message, can anybody help me?

I'm using Mac OS X 10.7.4

/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
/Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/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
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c:24: error: conflicting types for ‘rb_iseq_compile_with_option’
/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby-1.9.3-p194/vm_core.h:505: error: previous declaration of ‘rb_iseq_compile_with_option’ was here
ruby_debug.c: In function ‘call_at_line_unprotected’:
ruby_debug.c:474: warning: implicit conversion shortens 64-bit value into a 32-bit value
ruby_debug.c: In function ‘filename_cmp’:
ruby_debug.c:538: warning: implicit conversion shortens 64-bit value into a 32-bit value
ruby_debug.c:539: warning: implicit conversion shortens 64-bit value into a 32-bit value
ruby_debug.c: In function ‘optional_frame_position’:
ruby_debug.c:1695: warning: implicit conversion shortens 64-bit value into a 32-bit value
ruby_debug.c: In function ‘do_jump’:
ruby_debug.c:2310: warning: implicit conversion shortens 64-bit value into a 32-bit value
ruby_debug.c: In function ‘context_jump’:
ruby_debug.c:2378: warning: comparison between signed and unsigned
ruby_debug.c:2392: warning: comparison between signed and unsigned
make: *** [ruby_debug.o] Error 1

EDIT

When I try to install the gem using the "RubyMine Gem Tools" (inside RubyMine IDE) I received the message below:

Error running Development: myproject: Failed to Install Gems. Following gems were not installed: /Applications/RubyMine.app/rb/gems/ruby-debug-base19x-0.11.30.pre10.gem: Error installing ruby-debug-base19x-0.11.30.pre10.gem: ERROR: Failed to build gem native extension. /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for rb_method_entry_t.called_id in method.h... * 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 --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=/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include --without-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in block in try_compile' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in with_werror' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in try_compile' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1002:in block in have_struct_member' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in block in checking_for' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in block (2 levels) in postpone' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in open' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in block in postpone' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in open' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in postpone' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in checking_for' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1001:in have_struct_member' from extconf.rb:6:inblock in ' from extconf.rb:31:in call' from extconf.rb:31:inblock in ' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:527:in with_cppflags' from extconf.rb:30:in ' Gem files will remain installed in /Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-base19x-0.11.30.pre10 for inspection. Results logged to /Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-base19x-0.11.30.pre10/ext/ruby_debug/gem_make.out /Users/danilobarsotti/Library/Preferences/RubyMine40/rb/linecache19-0.5.13.gem: Error installing linecache19-0.5.13.gem: ERROR: Failed to build gem native extension. /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for vm_core.h... * 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 --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=/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include --without-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:506:in try_cpp' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:931:in block in have_header' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in block in checking_for' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in block (2 levels) in postpone' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in open' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in block in postpone' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in open' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in postpone' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in checking_for' from /Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:930:in have_header' from extconf.rb:15:inblock in ' from /Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in call' from /Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in create_makefile_with_core' from extconf.rb:19:in ` ' Gem files will remain installed in /Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/linecache19-0.5.13 for inspection. Results logged to /Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/linecache19-0.5.13/ext/trace_nums/gem_make.out

解决方案

1) Try download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from http://rubyforge.org/frs/?group_id=8883

2) gem install linecache19-0.5.13.gem

3) gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=[your ruby source] or you can try gem install ruby-debug-base19x --pre

这篇关于无法安装ruby-debug-base19x宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆