ruby或rails错误:不兼容的库版本 - parser.bundle

时间:2017-04-21 21:57:08

标签: ruby-on-rails ruby ruby-on-rails-4

我正在尝试运行我的ruby脚本,但我一直收到此错误。我试过重新安装ruby和rails。 ruby版本是2.3.3,rails是4.2.5。任何想法?

  
    

ruby​​ firebasepushserver.rb

  
/Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require': incompatible library version - /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/json-2.1.0/lib/json/ext/parser.bundle (fatal)
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/json-2.1.0/lib/json/ext.rb:7:in `<module:Ext>'
    from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/json-2.1.0/lib/json/ext.rb:6:in `<module:JSON>'
    from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/json-2.1.0/lib/json/ext.rb:3:in `<top (required)>'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/json-2.1.0/lib/json.rb:59:in `<module:JSON>'
    from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/json-2.1.0/lib/json.rb:55:in `<top (required)>'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/pg-0.20.0/lib/pg/text_encoder.rb:3:in `<top (required)>'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:68:in `require'
    from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/pg-0.20.0/lib/pg.rb:63:in `<module:PG>'
    from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/pg-0.20.0/lib/pg.rb:35:in `<top (required)>'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in `require'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
    from /Users/paulyang/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
    from firebasepushserver.rb:4:in `<main>'

0 个答案:

没有答案