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

后端 未结 18 2038
遇见更好的自我
遇见更好的自我 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:58

    Change your sqlite3 gem in the Gemfile for this:

    gem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec"
    

    Then run:

    bundle install
    

提交回复
热议问题