View Andy Lo-A-Foe's profile on LinkedIn

Installing new Ruby postgresql adapter on Leopard

I need to fix a project which uses PostgreSQL. On a fresh Leopard install with postgresql 8.3 installed from ports I ran into this problem:

$ sudo gem install pg
Building native extensions.  This could take a while…
ERROR:  Error installing ruby-pg:
ERROR: Failed to build gem native extension.

The solution is quite simply. Just make sure pg_config can be [...]