Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 97283
BY: dick wieland (rwieland)
DATE: 2011-12-21 20:26
SUBJECT: dbi-dbd error with postgres using ruby 1.8.7

 

I'm getting this error message trying to use dbi-dbd with postgres 8.4.10 and ruby 1.8.7

/usr/local/lib/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:300:in `load_driver': Unable to load driver 'Pg' (underlying error: uninitialized constant DBI::DBD::Pg) (DBI::InterfaceError)
from /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from /usr/local/lib/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:242:in `load_driver'
from /usr/local/lib/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:160:in `_get_full_driver'
from /usr/local/lib/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:145:in `connect'
from /home/wiline/pg.dbi.rb:13

my gem list look like this ..
*** LOCAL GEMS ***

columnize (0.3.6)
dbd-pg (0.3.9)
dbi (0.4.5)
deprecated (2.0.1)
linecache (0.46)
payment (1.0.1)
pg (0.12.0)
postgres (0.7.9.2008.01.28)
rake (0.9.2.2)
rake-compiler (0.7.9)
rbx-require-relative (0.0.5)
ruby-debug (0.10.4)
ruby-debug-base (0.10.4)
rubygems-update (1.8.12)
tzinfo (0.3.31)

Does anyone have any idea how I can fix this?

Thanks,
Dick Wieland


Thread View

Thread Author Date
dbi-dbd error with postgres using ruby 1.8.7dick wieland2011-12-21 20:26

Post a followup to this message