Heroku db:推送失败并出现段错误 [英] Heroku db:push fails with segfault

查看:139
本文介绍了Heroku db:推送失败并出现段错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Rails 3.1,Ruby 1.9.2安装了一个新的Heroku应用程序。问题在于'heroku db:push'填充数据库(已经适当模式化 - 现在唯一的问题是获取一些数据)。它会失败并显示以下报告:

blockquote
-1.3.5 / lib / sqlite3 / sqlite3_native.bundle:[BUG]分割错误

ruby​​ 1.8.7(2010-01-10 patchlevel 249)[universal-darwin11 .0]



中止陷阱:6


这令人费解原因:一,我在本地和heroku上使用postgresql数据库(在config / database.yml中正式声明)。和两个,红宝石1.8.7有什么关系? rvm设置为1.9.2,这是在我的路上,然而heroku试图运行它?什么给予?



感谢,
Steve Upstill

解决方案

也有这个问题,这是非常恼人的,但最终我得到它的工作。我安装了toolbelt,但是一旦我这样做就开始工作:

  gem install heroku 
sudo gem install taps

是的,工具栏已经安装好了,但我认为这真的解决了它。
很多人都遇到这个问题,你并不孤单。



希望这有助于(:


I am installing a new Heroku app for Rails 3.1, Ruby 1.9.2. The problem is in doing 'heroku db:push' to populate the database (which has been duly schematized--the only problem now is getting it some data). It fails with the following report:

/Users/upstill/.rvm/gems/ruby-1.9.2-p290/gems/sqlite3-1.3.5/lib/sqlite3/sqlite3_native.bundle: [BUG] Segmentation fault

ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

Abort trap: 6

This is puzzling for two reasons: one, I am using a postgresql database both locally and on heroku (duly declared in config/database.yml). And two, where has ruby 1.8.7 got to do with anything? rvm is set up for 1.9.2, it's on my path, and yet heroku is trying to run it? What gives?

Thanks, Steve Upstill

解决方案

Had this problem as well, it was extremely annoying but eventually I got it to work. I had the toolbelt installed but it started working once I did this:

gem install heroku
sudo gem install taps

Yes, the toolbelt is already installed but I think this really fixed it. Plenty of people are having this problem, you're not alone.

Hope this helps (:

这篇关于Heroku db:推送失败并出现段错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆