【问题标题】:Bundler gives pg when I ask for sqlite3当我要求 sqlite3 时,Bundler 会给出 pg
【发布时间】:2013-03-20 11:07:26
【问题描述】:
bundle show sqlite3
Could not find pg-0.14.1 in any of the sources

知道这里发生了什么吗?要求 sqlite3 如何让我得到 Postgres?我的 Gemfile 设置了用于开发的 sqlite3 和用于生产的 pg,并且我在开发环境中。

我已经手动安装了 pg,一旦我安装了 libpq-dev,它就可以工作,然后,bundle show sqlite3 按预期给了我 sqlite3。但是,bundler 怎么会因为没有安装不同的 gem 而弄得这么混乱呢?

【问题讨论】:

    标签: ruby-on-rails bundler


    【解决方案1】:

    你能给我们看看你的 Gemfile.lock 吗?我认为其他一些宝石可能需要 pg。

    【讨论】:

      猜你喜欢
      • 2014-10-04
      • 2014-01-12
      • 2018-04-05
      • 2020-05-07
      • 2021-05-13
      • 2017-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多