cannot load such file — sqlite3/sqlite3_native (LoadError) on ruby on rails

后端 未结 18 2029
遇见更好的自我
遇见更好的自我 2020-11-22 09:39

When I try to setup basic installation and initiation of server using Rails 4.0.0 on Ruby 2.0.0, I\'m facing the following error message.

/usr/local/lib/ruby         


        
18条回答
  •  鱼传尺愫
    2020-11-22 09:56

    I had the same error when I upgrade my Ruby version to 2.5.X. I tracked with rails task --trace that the sqlite3 is not available to version 2.5, than I change my GemFile the gem "sqlite3" change to "sqlite3-ruby", after I uninstall the gem "sqlite3" and finally I run the bundle install.

    I don't know what is the reason... I read that "sqlite3" is not available for ruby 2.5 yet, but I'm not sure.

提交回复
热议问题