Možnost 1:
Přidejte pg do vašeho Gemfile ale přeskočte pokus o jeho místní instalaci.
$ 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
Možnost 2 (Debian/Ubuntu):
Přidejte pg do vašeho Gemfile ale nejprve nainstalujte předpoklady.
$ 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