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

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

    If the top answer doesn't work, a fix that I discovered is simply going to your Gemfile and adding the version number 1.3.11 (instead of 1.3.9) right after sqlite3. So the line in your Gemfile should now read:

    # Use sqlite3 as the database for Active Record
    gem 'sqlite3',  '1.3.11'
    

提交回复
热议问题