在WIN x64上使用ruby-debug-base19-0.11.26.gem [英] ruby-debug-base19-0.11.26.gem on WIN x64

查看:79
本文介绍了在WIN x64上使用ruby-debug-base19-0.11.26.gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于我的系统的信息:



ruby​​ -v - > ruby​​ 1.9 .3p125(2012-02-16)[i386-mingw32]



gem -v - > 1.8.24






当我运行时

  bundle install 

输出:

 获取http://rubygems.org/ 
的源索引无法在任何源中找到ruby-debug-base19-0.11.26

防火墙关闭

我下载了这个文件:ruby- debug-base19-0.11.26.gem



但是当我运行时:

  gem install ruby​​-debug-base19-0.11.26.gem 

输出:

 临时增强PATH以包含DevKit ... 
构建本机扩展。这可能需要一段时间...
错误:安装ruby-debug-base19-0.11.26.gem时出错:
错误:无法构建gem原生扩展。

C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
在method.h中检查rb_method_entry_t.called_id ... no
检查rb_control_frame_t。 method.h中的method_id ... no
*** extconf.rb失败***
由于某种原因无法创建Makefile,可能缺少
必需的库和/或头文件。查看mkmf.log文件以获取更多
的详细信息。您可能需要配置选项。

提供的配置选项:
--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:/RailsInstaller/Ruby1.9.3/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
extconf.rb:16:在< main>中的block中:从C:/ RailsInstaller / Ruby1中断proc-closure(LocalJumpError)
.9.3 / lib / ruby​​ / gems / 1.9.1 / gems / ruby​​_core_sour
ce-0.1.5 / lib / ruby​​_core_source.rb:18:在C:/ RailsInstaller / Ruby1中调用
。 9.3 / lib / ruby​​ / gems / 1.9.1 / gems / ruby​​_core_sour
ce-0.1.5 / lib / ruby​​_core_source.rb:18:在`create_makefile_with_core'
从extconf.rb:32:在` < main>'


Gem文件将保持安装在C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1 / gems / ruby​​- debug-base19-0.11.26进行检查。
记录到C的结果:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debu
g-base19-0.11.26 / ext / ruby​​_debug / gem_make.out

有什么问题?

解决方案

打开你的Gemfile



看看是否有这样的东西...

  gem'ruby-debug19',:require => 'ruby-debug'

注释掉,并使用'debugger'代替

  #gem'ruby-debug19',:require => 'ruby-debug'
gem'debugger'


Info about my system:

ruby -v -> ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

gem -v -> 1.8.24


when i'm running

bundle install

output:

Fetching source index for http://rubygems.org/
Could not find ruby-debug-base19-0.11.26 in any of the sources

the firewall is OFF

I downloaded this file: ruby-debug-base19-0.11.26.gem

but when i run:

gem install ruby-debug-base19-0.11.26.gem

outputs:

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-base19-0.11.26.gem:
        ERROR: Failed to build gem native extension.

        C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
*** 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:/RailsInstaller/Ruby1.9.3/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
extconf.rb:16:in `block in <main>': break from proc-closure (LocalJumpError)
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby_core_sour
ce-0.1.5/lib/ruby_core_source.rb:18:in `call'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby_core_sour
ce-0.1.5/lib/ruby_core_source.rb:18:in `create_makefile_with_core'
        from extconf.rb:32:in `<main>'


Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/ruby-debug-base19-0.11.26 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/ruby-debu
g-base19-0.11.26/ext/ruby_debug/gem_make.out

what's the problem??

解决方案

Open your Gemfile

See if there's something like this...

gem 'ruby-debug19', :require => 'ruby-debug'

Comment it out, and use 'debugger' instead

#gem 'ruby-debug19', :require => 'ruby-debug'
gem 'debugger'

这篇关于在WIN x64上使用ruby-debug-base19-0.11.26.gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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