安装调试器时出错:无法使用ruby-1.9.3-p362构建gem本机扩展 [英] Error installing debugger: Failed to build gem native extension with ruby-1.9.3-p362

查看:68
本文介绍了安装调试器时出错:无法使用ruby-1.9.3-p362构建gem本机扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试为新项目运行捆绑软件时,遇到以下错误:

While trying run bundle for a new project, I'm encountering the following error:

Installing debugger (1.2.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    C:/Ruby193/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
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p362 provided with debugger-ruby_core_source gem.
**************************************************************************
*** 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:/Ruby193/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


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.2.2 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/debugger-1.2.2/ext/ruby_debug/gem_make.out
An error occured while installing debugger (1.2.2), and Bundler cannot continue.
Make sure that `gem install debugger -v '1.2.2'` succeeds before bundling.

运行 gem安装调试器-v'1.2.2'产生相同的结果。

我检查了mkmf.log和gem_make.out文件的内容,它们没有什么意义,但是如果需要,我会

I've checked the contents of the mkmf.log and gem_make.out file and they make little sense, but if requested I will post them.

为什么行不通?

推荐答案

我遇到了同样的问题。我尝试过:

I ran into same issue. I tried:

捆绑更新调试器

我的Gemfile具有以下功能:

My Gemfile had this:

gem'debugger'

它奏效了,我不必更改Gemfile。捆绑软件的输出显示如下内容

And it worked, I did not have to change Gemfile. Output of bundle shows something like this

...

安装debugger-ruby_core_source(1.1.6)

安装debugger-linecache (1.1.2)具有本机扩展

安装具有本机扩展的调试器(1.1.4)

...

这篇关于安装调试器时出错:无法使用ruby-1.9.3-p362构建gem本机扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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