From: Ben Bleything Date: 2010-11-09T07:23:36+09:00 Subject: Re: ruby-pg gem fails to install On Mon, Nov 8, 2010 at 2:11 PM, Rajinder Yadav wrote: > i tried the following > > sudo gem install pg -- > --with-pgsql-include=/opt/postgresql-9.0.1/src/interfaces/libpq > > still getting an error, how do i tell it where to find the header files? Did you try just "sudo gem install pg"? I suspect you did and it failed. At any rate, that's definitely not the correct path; you probably want something like /opt/postgresql-9.0.1/include Run pg_config, it'll tell you what your include dir is. Ben