错误“没有这样的文件加载” – sqlite3 / sqlite3_native(LoadError)

我的操作系统是Windows 7。

我的问题是,当我尝试运行rails server ,发生错误。 我已经安装了sqlite3gem,甚至是sqlite-rubygem,仍然没有。

我已经不知道该怎么做了。

如果有人需要任何额外的信息,请求,我会把它。

完整的错误是:

 C:/Ruby192/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3-x86-mingw32/lib/sqlite3.rb:6:in `require': no such file to load -- sqlite3/sqlite3_native (LoadError) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3-x86-mingw32/lib/sqlite3.rb:6:in `rescue in <top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3-x86-mingw32/lib/sqlite3.rb:2:in `<top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runtime.rb:68:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runtime.rb:68:in `block (2 levels) in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runtime.rb:66:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runtime.rb:66:in `block in require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runtime.rb:55:in `each' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runtime.rb:55:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler.rb:120:in `require' from C:/Users/JorWan/Desktop/JorWan/ASCENDSTUDIO/RoR/intento2/config/application.rb:7:in `<top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands.rb:28:in `require' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands.rb:28:in `block in <top (required)>' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands.rb:27:in `tap' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands.rb:27:in `<top (required)>' from script/rails:6:in `require' from script/rails:6:in `<main>' 

那个文件( /sqlite3/sqlite3_native )在你的PATH环境变量中? 这将需要为了这个宝石的工作。 如果您需要在命令提示符下使用echo %PATH%来检查尝试。 如果最终需要将其添加到路径中,则可以通过右键单击选择Properties\Advances\Environment Variables选项来SET PATH=%PATH%;C:\Path\To\Sqlite3或更改环境变量在My Computer 编辑路径变量来包含你的路径和中提琴!

忘记所有所谓的“答案”,不编译源代码或下载预编译的库将解决这个问题,相信我我试了一切,问题出在别的地方。 这是它如何在Windows上工作:

bundle update sqlite3

在这个关于nokogiri后,你可能会得到另一个类似的错误,修复它的命令:

bundle update nokogiri

享受你的Ruby应用程序!

这个URL提供了逐步的描述和解决方案。 希望对你有效。 http://rubyonwindowsguides.github.io/book/ch02-05.html