What gem needs to be installed so that 'require sqlite3' will work?

K

Kenneth McDonald

I've installed sqlite3-ruby, but that wasn't enough; I'm still getting:

irb(main):001:0> require 'sqlite3'
LoadError: no such file to load -- sqlite3
from (irb):1:in `require'
from (irb):1

Thanks,
Ken
 
S

Stefano Crocco

Alle Tuesday 30 September 2008, Kenneth McDonald ha scritto:
I've installed sqlite3-ruby, but that wasn't enough; I'm still getting:

irb(main):001:0> require 'sqlite3'
LoadError: no such file to load -- sqlite3
from (irb):1:in `require'
from (irb):1

Thanks,
Ken

If you installed sqlite3-ruby using rubygems, have you required 'rubygems'
before requiring 'sqlite3' (or added rubygems to the RUBYOPT environment
variable)?

Stefano
 
K

Kenneth McDonald

Yes, the require rubygems did it, thank you. As you can tell, I'm
still pretty
new to Ruby.

Thanks,
Ken
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top