[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

DBI problem

Arun Kumar

3/12/2009 12:34:00 PM

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-...attachment/34...

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

3 Answers

Pistos Christou

3/12/2009 1:04:00 PM

0

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

lasitha

3/12/2009 1:18:00 PM

0

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)

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

Arun Kumar

3/13/2009 5:18:00 AM

0

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