Last Updated: February 25, 2016
·
1.335K
· chizcw

DBD::Pg on MacOS

Install PostgreSQL

  1. Download from http://postgresapp.com/
  2. Move to /Applications
  3. Double-Click

Install pg gem

env ARCHFLAGS="-arch x86_64" \
  gem install pg -- \
 --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config

Install DBD::Pg

export POSTGRES_HOME=/Applications/Postgres.app/Contents/Versions/9.4/
cpanm --notest DBD::Pg