Deirdre Saoirse Moen

Sounds Like Weird

MacBookPro Postgres tip

14 November 2006

If you’ve tried to install the postgres ruby gem like so:

sudo gem install postgres — –with-pgsql-include-dir=/usr/local/pgsql/include –with-pgsql-lib-dir=/usr/local/pgsql/lib

…and you get the error:

checking for PQsetdbLogin() in -lpq… no
Could not find PostgreSQL libraries: Makefile not created
* extconf.rb failed *

…then it’s possible you didn’t compile postgres with the –with-openssl option. Doing so made everything work perfectly.


Related Posts