Thanks for the reply Dirkjan. I found the solution immidiately after I
posted the question. But I couldn't post a reply to it as it wasn't
shoowing on the group yet. For future reference I have attached the
solution.


My ubuntu did not have one libpq-dev package which apparantly is the C
application programmer's interface to postgreql.

I reached this conclusion after reading this thread
http://www.ruby-forum.com/topic/133380#840950.
Kirk put it all together in a couple of sentences.

sudo apt-get install libpq-dev
sudo gem install do_postgres

Thanks
Venkat

On Oct 16, 9:45 am, Dirkjan Bussink <[email protected]> wrote:
> On 15 Oct 2009, at 23:27, venkat wrote:
>
>
>
> > Building native extensions.  This could take a while...
> > ERROR:  Error installing do_postgres:
> >    ERROR: Failed to build gem native extension.
>
> > /usr/local/bin/ruby extconf.rb
> > checking for main() in -lpq... no
> > checking for main() in -llibpq... no
> > *** 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.
>
> This message here says it all, it can't find the postgresql headers to  
> compile the native driver against. If you're on an apt-get based  
> system, it's usually something like apt-get install libpq-dev.  
> Otherwise please check your package manager and look for how you can  
> install development headers.
>
> --
> Dirkjan Bussink
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to