版本
Mac OS: OSX 10.10.2
Ruby: 2.2.1p85
Rails: 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宝石库出了问题?
如果您需要被移除的信息,请告诉我。由于错误报告很长,所以为了简洁起见,我删除了其中一些代码,其中写着这里列出了很多信息
rvm
中删除所有2.2.1
版本的Ruby,并重新安装最新版本。 - Maxim