sqlite3 odd problem

D

Derril Lucci

greetings everyone,
i wrote a program that inserts data into a database using sqlite3. it
runs fine on freebsd 6.2 but when i try to run it on ubuntu 10.04, i get
the following error:
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- sqlite3 (LoadError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from SQL.rb:2


any help is appreciated.

cheers,
dlucci
 
L

Luis Lavena

greetings everyone,
  i wrote a program that inserts data into a database using sqlite3.  it
runs fine on freebsd 6.2 but when i try to run it on ubuntu 10.04, i get
the following error:
       /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- sqlite3 (LoadError)
  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
  from SQL.rb:2

any help is appreciated.

Ensure you have sqlite3-ruby gem installed:

gem install sqlite3-ruby

Ensure your script/app is loading RubyGems before loading sqlite3:

require 'rubygems'
require 'sqlite3'
 

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,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top