且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Windows 上启动 Rails 服务器时出错

更新时间:2023-09-15 11:04:34

找到您的 sqlite3 gemspec 文件.一个例子是

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.

您应该根据您的 Rubygem 路径和 sqlite3 版本进行调整.编辑上面的文件并查找以下行

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"]

改成

s.require_paths= ["lib/sqlite3_native"]

希望有帮助!!!