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

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

    Since pull request #229 has been merged, sqlite3 can be installed per git: key. It's possible to use sqlite3 easily through this addition in your Gemfile :

    gem 'sqlite3', git: "https://github.com/sparklemotion/sqlite3-ruby"
    

    This works on RubyInstaller-2.4 and newer. It automatically installs the required pacman package mingw-w64-x86_64-sqlite3 when you run bundler install.

    There are some more hints for Rails on Windows in the RubyInstaller2 FAQ.

提交回复
热议问题