Sqlite3 odd problem

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:inrequire’
from SQL.rb:2

any help is appreciated.

cheers,
dlucci

Either you don’t have the gem installed or you don’t have your gem_path
set.

gem list sqlite3

*** LOCAL GEMS ***

sqlite3-ruby (1.2.5)

If not loaded it and you should be good to go

On Aug 13, 4:02 pm, Derril L. [email protected] wrote:

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’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs