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

T

Tom Cloyd

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

Jens Wille

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: (e-mail address removed)
http://www.prometheus-bildarchiv.de/
 

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
474,284
Messages
2,571,411
Members
48,103
Latest member
MadieDeitz

Latest Threads

Top