postgresql gem on Leopard stock gem system
Posted by kev Sun, 23 Dec 2007 01:24:00 GMT
This fails horribly.
The solution is to make sure you’re only building for your architecture:
Odysseus:ext kev$ sudo -s
bash-3.2# ARCHFLAGS='-arch i386' gem install postgres
Building native extensions. This could take a while...
Successfully installed postgres-0.7.9.2007.12.22
Installing ri documentation for postgres-0.7.9.2007.12.22...
Installing RDoc documentation for postgres-0.7.9.2007.12.22...

Gah… tell me about it. Even the macport to postgres was a debacle: http://trac.macports.org/projects/macports/ticket/12994
Postgres needs love on the adoption / usage front. Postgres FTW.
I inadvertently ran into this problem yesterday. This works perfectly. Thank you.
Hi Kevin,
I have just started learning Ruby on Rails and plan to use it in Rolling out our web product in India.
I was wondering if there could be a way in which we can ask a few questions from you, to be answered whenever you get some time :)
Regards, —Vaibhav
FYI, this does NOT work with sudo since sudo strips the env var out. You must ‘sudo -s’ or ‘sudo su’ and run the command straight up. I don’t like it, but I couldn’t find a better way.
Dude, zed has gone ape shit. I think your are cool kev!
http://www.zedshaw.com/rants/rails_is_a_ghetto.html