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

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

    Find your sqlite3 gemspec file. One example is /usr/local/share/gem/specifications/sqlite3-1.3.7.gemspec

    Windows: C:\Ruby21\lib\ruby\gems\2.1.0\specifications.

    You should adjust according with your Rubygem path and sqlite3 version. Edit the file above and look for the following line

    s.require_paths=["lib"]
    

    change it to

    s.require_paths= ["lib/sqlite3_native"]
    

提交回复
热议问题