ruby-on-rails – 运行’bundle exec rake’时出现分段错误

运行后:

$bundle exec rake

我收到此错误:

/Users/user/Documents/Code/spree_gem/vendor/bundle/gems/json-
1.8.2/lib/json/ext/parser.bundle: [BUG] Segmentation fault at 0x00000000000418 
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64darwin14.0]

除此之外:

/Users/user/Documents/Code/spree_gem/vendor/bundle/bin/rake:23
:in `<main>'
/Users/user/Documents/Code/spree_gem/vendor/bundle/bin/rake:23
:in `load'
/Users/user/Documents/Code/spree_gem/vendor/bundle/gems/rake-
10.4.2/bin/rake:33:in `<top (required)>'

我试过$gem pristine –all.有什么想法吗?

我也有同样的错误.用Google搜索并找到这两个帖子
http://community.onemonth.com/t/install-rvm-error/1883/25
https://bugs.ruby-lang.org/issues/9444

第一篇帖子的解决方案为我修好了,所以对你来说就是:

rvm get stable
rvm reinstall ruby-2.1.5
相关文章
相关标签/搜索