ruby-2.0.0-p451没有与debugger-ruby_core_source gem一起提供 [英] No source for ruby-2.0.0-p451 provided with debugger-ruby_core_source gem
问题描述
我在其他SO问题中看到过类似的问题(例如没有ruby-1.9.2-p321和debugger-ruby_core_source gem提供的源代码)以及谷歌搜索,但没有一个帮助过很远。
我使用OSX Mavericks(第一次使用mac用户)和rbenv(第一次使用它)。我git克隆了一个Rails项目,我以前在另一台笔记本电脑(Ubuntu& rvm)上运行过。
$ b
rbenv version
:2.0.0-p451(我手动安装的)
当我尝试 bundle install
,我得到以下内容:
...
使用debugger-ruby_core_source(1.3.1)
Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展。
/Users/macuser/.rbenv/versions/2.0.0-p451/bin/ruby extconf.rb
在method.h中检查rb_method_entry_t.called_id ... no
在method.h中检查rb_control_frame_t.method_id ... no
在method.h中检查rb_method_entry_t.called_id ... no
在method.h中检查rb_control_frame_t.method_id ... no
Makefile创建失败
***************************************** *********************************
调试器提供的ruby-2.0.0-p451没有源代码-ruby_core_source宝石。
********************************************** ****************************
*** 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 = / Users / macuser / .rbenv / versions / 2.0.0-p451 / bin / ruby
--with-ruby-dir
- -without-ruby-dir
--with-ruby-include = $ {ruby-dir} / include
--with-ruby-lib
--without-ruby-lib = $ {ruby-dir} /
Gem文件将保持安装在/Users/macuser/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/ gems / debugger-1.6.5进行检查。
记录到/Users/macuser/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/debugger-1.6.5/ext/ruby_debug/gem_make.out $ b的结果$ b安装调试器(1.6.5)时发生错误,并且Bundler无法继续。
确保在捆绑之前`gem install debugger -v'1.6.5'`成功。
然后我试着运行 gem install debugger -v'1.6.5'
$ b
可能还有其他一些...但是没有任何东西s工作。
更新:将我的rbenv本地环境切换到ruby 2.1.0,它工作。没有解决底层问题,但这很好,我猜想 尝试安装 debugger
,但不指定版本,然后再次运行 bundle install
。
$ gem install debugger
$ bundle安装
I've seen very similar problems in other SO questions (e.g. No source for ruby-1.9.2-p321 provided with debugger-ruby_core_source gem) as well as through a Google search, but none of those have helped so far.
I'm using OSX Mavericks (first time mac user) and rbenv (first time using that too). I've git cloned a Rails project which I've previously ran on another laptop (Ubuntu & rvm) fine.
rbenv version
: 2.0.0-p451 (which I manually installed)
When I try to bundle install
, I get the following:
...
Using debugger-ruby_core_source (1.3.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/macuser/.rbenv/versions/2.0.0-p451/bin/ruby 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-2.0.0-p451 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=/Users/macuser/.rbenv/versions/2.0.0-p451/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/
Gem files will remain installed in /Users/macuser/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/debugger-1.6.5 for inspection.
Results logged to /Users/macuser/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/debugger-1.6.5/ext/ruby_debug/gem_make.out
An error occurred while installing debugger (1.6.5), and Bundler cannot continue.
Make sure that `gem install debugger -v '1.6.5'` succeeds before bundling.
So I then tried running gem install debugger -v '1.6.5'
, which throws basically the same error as above.
From searching around, here's some things I've unsuccessfully tried:
and probably some others too... but nothing seems to work.
Update: Switched my rbenv local environment to ruby 2.1.0 and it worked. Didn't fix the underlying problem, but this is fine I guess
Try install debugger
without specifying a version and then run bundle install
again.
I had the same error, and it just worked, don't ask me why:
$ gem install debugger
$ bundle install
这篇关于ruby-2.0.0-p451没有与debugger-ruby_core_source gem一起提供的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!