From: Manisha Tripathy Date: 2009-01-27T00:19:39+09:00 Subject: Re: Need help for Ruby DBI and PostgreSQl Brian Candler wrote: > Manisha Tripathy wrote: >> ruby setup.rb config >> ruby setup.rb setup >> ruby setup.rb install >> >> But the only problem during installation was that I couldnt do config >> with option >> i.e. >> >> ruby setup.rb config --with=dbi,dbd_pg >> >> It showed error while using that option. > > You need to show the exact error message you got. > > As it is, we can only guess - maybe you forgot to install the libpq-dev > package first? If you'd shown the error message, we could tell you for > sure. > > Similarly, if > > require 'postgres' > dbh = DBI.connect('DBI:pg:databasename') > > is giving an error, then you need to show the exact error. "I cannot > connect" isn't helpful. ok, here is the error : config: unknown option --with=dbi,dbd_pg Try 'ruby setup.rb --help' for detailed usage. When i checked for help, it just doesnt have an option --with= , but in all the tutorials for ruby-dbi, i found the same.I already have installed libpq-dev package. I am quite a beginner, so may be i am missing something fundamental.It will be very kind if anyone can help.i will be glad to learn. -- Posted via http://www.ruby-forum.com/.