当我要求sqlite3时,Bundler给出了pg

时间:2022-06-01 19:50:43
bundle show sqlite3
Could not find pg-0.14.1 in any of the sources

Any idea what's going on here? How can asking for sqlite3 get me Postgres? My Gemfile has sqlite3 set for development and pg for production, and I'm in the development environment.

知道这里发生了什么吗?怎么能要求sqlite3给我Postgres?我的Gemfile有sqlite3设置用于开发,pg用于生产,我在开发环境中。

I've since installed pg manually, which worked once I'd installed libpq-dev, and then after that, bundle show sqlite3 gives me sqlite3 as expected. But how could bundler have got this confused just because a different gem didn't install?

我已经手动安装了pg,一旦我安装了libpq-dev就运行了,之后,bundle show sqlite3按预期给了我sqlite3。但是,由于不同的宝石没有安装,捆绑器怎么会让这个混乱?

1 个解决方案

#1


0  

Could you show us your Gemfile.lock? I think some other gem may require pg.

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

#1


0  

Could you show us your Gemfile.lock? I think some other gem may require pg.

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