Access Postgre Sql

I am new to this language

I am having a text file containg some data.I want to populate it into
postgre sql using ruby(not ruby on rails).What are the steps to do.

I googled and tried to follow the instruction like install dbi etc but
cant run properly.

Please give step by step procedure including where should i install the
postgre sql,how to get dbi of “require ‘dbi’” etc

Please help
Thanks a lot

I usually use sequel, but there are many other gems to access
relational databases.

Daniel,

Excerpts from Jagan Jacob’s message of Mon Nov 29 11:05:27 -0300 2010: