Rails Bundle安装与Postgres Gem有问题



我一直遇到Rails Gem中PG的问题。当我尝试..

$ bundle install

..我的终端返回..

An error occurred while installing pg (0.21.0), and Bundler cannot
continue.
Make sure that `gem install pg -v '0.21.0'` succeeds before bundling.

我的gemfile包括:

group :production, :default do
  gem 'pg'
end

我正在做的练习是在Heroku部署我的Rails应用程序,并且可以使用。这个想法是我不在本地安装Postgres。

这是我的github回购

这个想法是我不在本地安装Postgres。

我认为如果不安装Postgres并更新

,我不可能安装此宝石

这在Heroku上起作用的原因是那里的环境已经安装了Postgres

最新更新