From: Rajinder Yadav Date: 2010-11-09T07:11:29+09:00 Subject: Re: ruby-pg gem fails to install On Mon, Nov 8, 2010 at 4:01 PM, Ben Bleything wrote: > On Mon, Nov 8, 2010 at 12:52 PM, Rajinder Yadav wrote: >> i built postgres 9.0 from source and i am trying to install ruby-pg >> and get the following error > > ruby-pg is ancient. you want the pg gem. > > Ben 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? checking for pg_config... no checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. -- Kind Regards, Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely GNU/Linux: 2.6.35-22-generic Kubuntu x86_64 10.10 | KDE 4.5.1 Ruby 1.9.2p0 | Rails 3.0.1