Error : 'incompatible library version' sqlite3-1.3.11 in rails

后端 未结 5 767
梦谈多话
梦谈多话 2021-01-13 15:22

I working on Ubuntu system(16.04).

My problem is whenever i setup any rails project and try to run rails s then i got \'incompatible library version\' e

相关标签:
5条回答
  • 2021-01-13 15:54

    The SQLite library is likely to be corrupted. Try reinstalling the gem by running the following from a command pronpt:

    gem uninstall sqlite3
    

    Then run:

    bundle install
    
    0 讨论(0)
  • 2021-01-13 15:55

    I came here looking for answer, didn't help me, but I found a solution here, (it appears to be an issue with 1.3.11, downgrade to 1.3.10 did the trick)

    0 讨论(0)
  • 2021-01-13 15:59

    I've rolled back ruby version to 2.3.0 and all worked .It seems to be an issue

    0 讨论(0)
  • 2021-01-13 16:01

    For me going back to ruby 2.2.5p319 helped. I just realize the version of the Ruby that comes with Rails has to match to the one installed even though the RubyInstaller release gets ahead.

    0 讨论(0)
  • 2021-01-13 16:11

    @Jiggs: The same issue I got when my system updated to 16.04. After that all previous applications were difficult to configure as throwing so many dependency errors, in which your error was one of them.

    After lots of finding only conclusion I got the problem is on RVM,

    If you are using RVM then please install Rails 5.0 in yous default gemset

    rvm gemset use default
    gem install rails -v=5.0 
    

    After installing rails 5 all the compatible dependencies get installed.

    Now move to your any project CREATE New GEMSET (please don't use previous).

    rvm gemset create my_new_gemset
    rvm gemset use my_new_gemset
    

    Finally do bundle install

    In my case after doing this resolved all the errors as you mentioned.

    I know it is bit strange that installing Rails-5 in default gemset and using new gemset resolved this issue. But somehow it works.

    Hope this will help you.

    0 讨论(0)
提交回复
热议问题