ruby-1.9.2-p321没有与debugger-ruby_core_source gem一起提供 [英] No source for ruby-1.9.2-p321 provided with debugger-ruby_core_source gem
问题描述
更新:找到了这个,但不知道该怎么做。 诸如debugger-linecache之类的宝石需要显式的补丁级别的Ruby,这对于开发是很好的,但不应该用于生产。如果你在生产中有这些Gems
中的一个,并且Ruby的补丁得到升级,你的部署将失败。
解决方法是将您的依赖项移出Gemfile的生产组。
这里是错误:
安装debugger-linecache(1.2.0)
安装debugger-ruby_core_source(1.2.4)
安装调试器(1.6.3)
Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展。
/tmp/ruby-1.9.2/bin/ruby extconf.rb
在method.h中检查rb_method_entry_t.body ... no
检查vm_core.h ... no
在method.h中检查rb_method_entry_t.body ... no
检查vm_core.h ... no
Makefile创建失败
************* ************************************************** ***********
调试器ruby_core_source gem提供的ruby-1.9.2-p321没有源代码。
********************************************** ****************************
*** 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 = / tmp / ruby-1.9.2 / 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文件将保留安装在/tmp/build_3f34841b-c8ae-4ac7-a6ff-9cdb26e947fa/vendor/bundle/ruby/1.9中。 1 / gems / debugger-1.6.3进行检查。
结果记录到/tmp/build_3f34841b-c8ae-4ac7-a6ff-9cdb26e947fa/vendor/bundle/ruby/1.9.1/gems/debugger-1.6.3/ext/ruby_debug/gem_make.out
An安装调试器(1.6.3)时发生错误,并且Bundler不能
继续。
在捆绑之前确保`gem install debugger -v'1.6.3'`成功。
!
!无法通过Bundler安装宝石。
!
!推送被拒绝,未能编译Ruby应用程序
我将此添加到我的gemfile中
gem'debugger',group:[:development,:test]
到我的gem文件中。
使用 rm Gemfile.lock
删除了我的gem锁定文件。 Ran bundle install
,并且推送成功。
I recently updated to Mavericks. Added Command Line tools for xcode. Tried "bundle update debugger", along with every other fix I found, including this rake add_source to include the appropriate header found here:http://sponsorpay.github.io/blog/2012/06/11/ruby-debugger-and-no-source-for-ruby-error/, and I still cannot push my project to heroku without errors. Any help is appreciated. Thanks in advance.
Update: Found this but not sure how to do it. "Gems such as debugger-linecache require explicit patch levels of Ruby, this is fine for development, but should not be used in production. If you have one of these Gems in production and the patch of Ruby gets upgraded your deploy will fail.
The fix is to move your dependency out of the production group of your Gemfile." Here's the error:
Installing debugger-linecache (1.2.0) Installing debugger-ruby_core_source (1.2.4) Installing debugger (1.6.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/tmp/ruby-1.9.2/bin/ruby extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.2-p321 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=/tmp/ruby-1.9.2/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 /tmp/build_3f34841b-c8ae-4ac7-a6ff-9cdb26e947fa/vendor/bundle/ruby/1.9.1/gems/debugger-1.6.3 for inspection.
Results logged to /tmp/build_3f34841b-c8ae-4ac7-a6ff-9cdb26e947fa/vendor/bundle/ruby/1.9.1/gems/debugger-1.6.3/ext/ruby_debug/gem_make.out
An error occurred while installing debugger (1.6.3), and Bundler cannot
continue.
Make sure that `gem install debugger -v '1.6.3'` succeeds before bundling.
! ! Failed to install gems via Bundler. !
! Push rejected, failed to compile Ruby app
I added this to my gemfile
gem 'debugger', group: [:development, :test]
to my gem file.
Removed my gem lock file with rm Gemfile.lock
. Ran bundle install
, and the push succeeded.
这篇关于ruby-1.9.2-p321没有与debugger-ruby_core_source gem一起提供的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!