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/.