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
Pingback: Migrating to Snow Leopard for Rails Development – A Definitive Guide « A Fresh Cup
Pingback: Journey to Snow Leopard | Cylence Web Design
This works also if you have installed postgresql via mac ports, just ignore the export PATH
Pingback: tending the garden › Snow Leopard and PostgreSQL: installation help links
Pingback: The Life Of A Radar » Blog Archive » Snow Leopard Ruby/Rails Developer Setup
Thanks for this. Forgot that it was -arch x86_64 not -arch i386.
Thanks for the tip; solved my problem.
Thanks for this post. Fixed my problem after trying for over an hour