gpt4 book ai didi

ruby-on-rails - 安装调试器时出错 : Failed to build gem native extension with ruby-1. 9.3-p362

转载 作者:数据小太阳 更新时间:2023-10-29 06:27:49 24 4
gpt4 key购买 nike

尝试为新项目运行 bundle 时,遇到以下错误:

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 install debugger -v '1.2.2' 产生相同的结果。

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

为什么这行不通?

最佳答案

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

bundle 更新调试器

我的 Gemfile 有这个:

gem '调试器'

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

...

安装 debugger-ruby_core_source (1.1.6)

使用 native 扩展安装 debugger-linecache (1.1.2)

使用 native 扩展安装调试器 (1.1.4)

...

关于ruby-on-rails - 安装调试器时出错 : Failed to build gem native extension with ruby-1. 9.3-p362,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14060513/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com