DBI problem

A

Arun Kumar

I've a problem with the database connectivity. Whenever i'm trying to
load the test.rb file i receive an error like this

/usr/local/lib/site_ruby/1.8/dbi.rb:48:in `require': no such file to
load -- deprecated (LoadError)

It appears when the require 'dbi' is given. Can anybody please help?

Attachments:
http://www.ruby-forum.com/attachment/3424/test.rb
 
L

lasitha

/usr/local/lib/site_ruby/1.8/dbi.rb:48:in `require': no such file to
load -- deprecated (LoadError)

I'm guessing you need the 'deprecated' gem.

Not sure why it's failing on require instead of earlier when the
deprecated gem was loaded...

Oh, line 35 of dbi.rb:
begin
require "rubygems"
gem "deprecated"
rescue LoadError
end

??

Anyway, so you just need:
[sudo] gem install deprecated


solidarity,
lasitha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top