如何使用Rails和ruby修复sqlite3错误

时间:2019-05-10 00:55:45

标签: ruby-on-rails ruby

工作正常)在这里:

Bundler找不到与宝石“ ruby​​”兼容的版本:

在Gemfile中:

ruby  (~> 2.6.1.0) x64-mingw32

sass-rails (~> 5.0) x64-mingw32 was resolved to 5.0.6, which depends on
  sass (~> 3.1) x64-mingw32 was resolved to 3.5.1, which depends on
    sass-listen (~> 4.0.0) x64-mingw32 was resolved to 4.0.0, which depends on
      rb-inotify (~> 0.9, >= 0.9.7) x64-mingw32 was resolved to 0.9.10, which depends on
        ffi (>= 0.5.0, < 2) x64-mingw32 was resolved to 1.9.18, which depends on
          ruby  (< 2.5) x64-mingw32

Could not find gem 'ruby  (< 2.5)', which is required by gem 'sqlite3', in any 
of the relevant sources: the local ruby installation

1 个答案:

答案 0 :(得分:0)

我通过添加

弄清楚了
gem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec"