我最近更新到小牛队.为xcode添加了命令行工具.尝试了"捆绑更新调试器",以及我找到的所有其他修复程序,包括此rake add_source以包含此处找到的相应标头:http://sponsorpay.github.io/blog/2012/06/11/ruby-debugger-and -no-source-for-ruby-error /,我仍然无法将我的项目推送到heroku而没有错误.任何帮助表示赞赏.提前致谢.
更新:找到了这个,但不知道该怎么做."诸如debugger-linecache之类的Gems需要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 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.
!!无法通过Bundler安装gem.!
!推送拒绝,无法编译Ruby应用程序