オプション1:
pgを追加します Gemfileに ただし、ローカルにインストールすることはスキップしてください。
$ cat Gemfile
...
group :production do
# gems specifically for Heroku go here
gem "pg"
end
# Skip attempting to install the pg gem
$ bundle install --without production
オプション2(Debian / Ubuntu):
pgを追加します Gemfileに ただし、最初に前提条件をインストールします。
$ cat Gemfile
...
group :production do
# gems specifically for Heroku go here
gem "pg"
end
# Install the pg gem's dependencies first
$ sudo apt-get install libpq-dev
# Then install the pg gem along with all the other gems
$ bundle install