[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

gem not found...or is it something else?

Tom Cloyd

2/19/2008 5:28:00 PM

I'm just beginning to use gem sqlite3-ruby - at the very beginning.
I can't even get past the 'require'. I've verified that the gem IS
installed. I also have sqlite3 installed (on my Kubunti 7.10 - but I
don't exactly know where it is).

Launching my little test program....

$ ruby sqlite-demo.rb
sqlite-demo.rb:13:in `require': no such file to load -- sqlite3 (LoadError)
from sqlite-demo.rb:13:in `main'
from sqlite-demo.rb:80

But 'require sqlite3' (quoting my little program) is right out of the
documentation. What gives? What ignorant thing am I doing here to get
this error?

Thanks in advance for any help.

Tom C.

1 Answer

Jens Wille

2/19/2008 5:41:00 PM

0

hi tom!

Tom Cloyd [2008-02-19 18:27]:
> $ ruby sqlite-demo.rb
> sqlite-demo.rb:13:in `require': no such file to load -- sqlite3 (LoadError)
> from sqlite-demo.rb:13:in `main'
> from sqlite-demo.rb:80
since it's a gem you need to 'require "rubygems"' first.

cheers
jens

--
Jens Wille, Dipl.-Bibl. (FH)
prometheus - Das verteilte digitale Bildarchiv für Forschung & Lehre
Kunsthistorisches Institut der Universität zu Köln
Albertus-Magnus-Platz, D-50923 Köln
Tel.: +49 (0)221 470-6668, E-Mail: jens.wille@uni-koeln.de
http://www.prometheus-bild...