分割故障阻止Heroku命令 [英] Segmentation Fault preventing Heroku Commands

查看:193
本文介绍了分割故障阻止Heroku命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ruby 2.1.2

I'm using Ruby 2.1.2

当我把它放在我的gemfile文件中时,我在Heroku的命令上发现错误,说我正在使用1.9.3

When I put that in my gemfile I get errors on heroku commands that say I'm using 1.9.3

当我将它从我的gemfile中删除时,我得到了关于json gem的分段错误:

When I remove it from my gemfile I get a "segmentation fault" regarding the json gem:

/Users/Justus/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]

我只想在heroku上运行迁移,这阻止了我运行任何heroku命令。任何建议?

I just want to run a migration on heroku and this is preventing me from running any heroku commands. Any suggestions?

推荐答案

好的,这里的解决方案(感谢 Nitin Verma https://github.com/sstephenson / rbenv / issues / 400 ):

Ok, here's the solution (thanks to Nitin Verma https://github.com/sstephenson/rbenv/issues/400):

# Rakefile
task :freedom do
  Bundler.with_clean_env { sh "heroku" }
end

这篇关于分割故障阻止Heroku命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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