How to install pg (postgresql) gem on Snow Leopard, 64 bit

Install PostgreSQL from source/port for this, does not currently build against binary package.
PATH should be /usr/local/pgsql.

export PATH=/usr/local/pgsql/bin:${PATH}
env ARCHFLAGS="-arch x86_64" gem install pg

Or if you are using macports:

export PATH=/opt/local/lib/postgresql83/bin:${PATH}
env ARCHFLAGS="-arch x86_64" gem install pg
$1.99 domains with SSL purchase!

8 thoughts on “How to install pg (postgresql) gem on Snow Leopard, 64 bit

  1. Pingback: Migrating to Snow Leopard for Rails Development – A Definitive Guide « A Fresh Cup

  2. Pingback: Journey to Snow Leopard | Cylence Web Design

  3. Pingback: tending the garden › Snow Leopard and PostgreSQL: installation help links

  4. Pingback: The Life Of A Radar » Blog Archive » Snow Leopard Ruby/Rails Developer Setup

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">