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

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

    i found it! i saw this https://www.youtube.com/watch?v=lsrzvX0qzmA
    i instaled: Rails version: 5.2.1 Ruby version: 2.5.3 (x64-mingw32) Sqlite version 1.3.13
    and i have your problem... my solution:

    1. In your installing folder like C:\Ruby25-x64\lib\ruby\gems\2.5.0\gems\
      you have folders: "sqlite3-1.3.13" "sqlite3-1.3.13-x64-mingw32"
    2. Find file
      C:\Ruby25-x64\lib\ruby\gems\2.5.0\gems\sqlite3-1.3.13\lib\sqlite3\sqlite3_native.so
    3. Copy it in C:\Ruby25-x64\lib\ruby\gems\2.5.0\gems\sqlite3-1.3.13-x64-mingw32\lib\sqlite3\2.5\sqlite3_native.so (may be folders not exist - create and paste)

提交回复
热议问题