【发布时间】:2015-03-17 06:43:07
【问题描述】:
版本
Mac 操作系统:OSX 10.10.2
红宝石:2.2.1p85
导轨:4.2.0
上下文
我正在关注 www.installrails.com 上的“安装 Rails”教程。在遇到许多错误后终于通过了。我正在创建示例应用程序的最后一步,它运行良好,然后运行服务器。现在,我遇到了另一个错误。
错误
这是我所看到的:
/Users/Work/.rvm/gems/ruby-2.2.1/gems/json-1.8.2/lib/json/ext/parser.bundle: [BUG] Segmentation fault at 0x00000000000418
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
-- Control frame information -----------------------------------------------
*A lot of information listed here*
-- Ruby level backtrace information ----------------------------------------
*A lot of information listed here*
-- Machine register context ------------------------------------------------
*A lot of information listed here*
-- C level backtrace information -------------------------------------------
*A lot of information listed here*
-- Other runtime information -----------------------------------------------
* Loaded script: bin/rails
* Loaded features:
*And then a long list of files listed here*
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
Don't forget to include the above Crash Report log file.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap: 6
帮助
现在,我想知道是不是 json gem 导致了问题?
如果您需要任何已删除的信息,请告诉我。错误报告真的很长,所以为了简洁起见,我删除了 此处列出了很多信息 的代码。
【问题讨论】:
-
尝试从
rvm中删除所有2.2.1ruby 版本并重新安装最新版本。 -
我遇到了完全相同的问题:
标签: ruby-on-rails ruby json