DBD::Pg on MacOS
Install PostgreSQL
- Download from http://postgresapp.com/
- Move to /Applications
- 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
Written by Chisel Wright
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Postgres
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#