As a sanity check have you checked the that ruby and postgresql are either both 32-bit or both 64-bit? What do you get if you run the following?
$ file $(which ruby) $ file $(which pg_config) I encountered the exact same error messages as you a few months ago. I had installed postgresql via MacPorts, and, like Darren, I was using a version of ruby installed via rvm. It turned I had built a 32-bit version of ruby, but the version of postgresql I had installed was 64-bit (the above "file" incantations revealed this to me). After rebuilding ruby with ARCHFLAGS="-arch x86_64" I was able to build the ruby-pg gem. -John On Thu, Feb 11, 2010 at 3:20 PM, Gisborne <[email protected]> wrote: > I'm afraid that didn't help. Anyone else have any ideas? > > A simple solution might be to grab a binary someone else compiled. Or > do I go to hell if I do that? :-) > > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby > -- John Parker [email protected] -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
