我最近更新到小牛队.为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. …Run Code Online (Sandbox Code Playgroud)