Ruby 1.8.7 的分段错误 [英] Segmentation fault with Ruby 1.8.7

查看:34
本文介绍了Ruby 1.8.7 的分段错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Rails 3.2.0.rc2,但遇到了一些问题.当我尝试执行 rails s 时,我现在得到:

I'm trying to use Rails 3.2.0.rc2 but I'm running into some problems. When I try to do a rails s I am now getting:

/Users/Kyle/.rvm/gems/ruby-1.9.2-p290@skateparks/gems/json-1.6.5/ext/json/ext/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

[1]    28744 abort      rails s

有趣的是,我使用的是 1.9.2,但错误似乎与 1.8.7 有关.我已执行以下操作来尝试解决此问题,但未成功:

What's interesting is that I am using 1.9.2 but the error seems to be related to 1.8.7. I have done the following to try to fix this problem w/ no success:

rvm gemset empty
rvm use 1.9.2@skateparks
gem install bundler
bundle install

推荐答案

您可以尝试重建部分或全部 gem.它可能与您的共享库和 .bundle 文件有关.

You could try rebuilding some or all of your gems. It may be related to your shared libraries and .bundle files.

JSON 有一个已编译的扩展,可能已损坏或呈现不兼容.

JSON has a compiled extension that might've been corrupted or rendered incompatible.

这篇关于Ruby 1.8.7 的分段错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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