6

我能够从我的 MacBook 开发环境中运行 heroku db:pull 没有任何问题,但是当我在我的 Windows 7 机器上执行命令时出现以下错误

C:/Program Files (x86)/Heroku/ruby-.9.2/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': LoadError: cannot load such file -- sqlite3 (Sequel::AdapterNotFound)
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/adapters/sqlite.rb:1:in `<top (required)>'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:249:in `block in tsk_require'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:72:in `block in check_requiring_thread'
    from <internal:prelude>:10:in `synchronize'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:69:in `check_requiring_thread'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:249:in `tsk_require'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/database/connecting.rb:25:in `adapter_class'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/database/connecting.rb:54:in `connect'
    from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/core.rb:119:in `connect'
    from C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/schema.rb:69:in `load_indexes'
    from C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/bin/schema:40:in `<main>'
4

5 回答 5

6

您可能需要安装sqlite3gem。

于 2013-03-01T17:19:39.237 回答
2

我遇到了同样的问题。我已经添加了sqlite3gem,但是我错误地调用了 Sequel 适配器sqlite3。正确的适配器名称是简单的sqlite

于 2015-02-03T22:43:53.177 回答
1

我会尝试安装几个宝石:

gem install sqlite3
gem install heroku
于 2013-03-01T18:17:44.920 回答
0

尝试使用以下命令更新 gem:

gem update --system

于 2014-04-16T19:12:39.000 回答
0

尝试在 gemfile 中包含以下内容:

gem 'sequel'
于 2017-02-01T23:28:14.143 回答