DBI problem

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

···

--
Posted via http://www.ruby-forum.com/.

Arun Kumar wrote:

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?

Try installing the 'deprecated' gem.

gem install deprecated

···

--
Posted via http://www.ruby-forum.com/\.

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

···

On Thu, Mar 12, 2009 at 6:04 PM, Arun Kumar <arunkumar@innovaturelabs.com> wrote:

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

Pistos Christou wrote:

Arun Kumar wrote:

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?

Try installing the 'deprecated' gem.

gem install deprecated

Thanks Pistos. Now I got it.

···

--
Posted via http://www.ruby-forum.com/\.