From: Vince Vince Date: 2010-12-13T08:03:22+09:00 Subject: Re: ruby-pg gem fails to install Try this sudo gem install pg -- --with-opt-dir=/usr/local/lib/postgre/ --with-pg-dir=/usr/local/lib/postgre/ where /usr/local/lib/postgre/ should be changed to dir where your postgresql was installed -- Posted via http://www.ruby-forum.com/.