DBI problem


#1

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?


#2

Arun K. 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


#3

On Thu, Mar 12, 2009 at 6:04 PM, Arun K.
removed_email_address@domain.invalid wrote:

/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


#4

Pistos C. wrote:

Arun K. 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.