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:in `require'
  from SQL.rb:2

any help is appreciated.

cheers,
  dlucci

···

--
Posted via http://www.ruby-forum.com/.

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

···

On Fri, 2010-08-13 at 14:02 -0500, Derril Lucci wrote:

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

gem list sqlite3

*** LOCAL GEMS ***

sqlite3-ruby (1.2.5)

If not loaded it and you should be good to go

···

From: Derril Lucci <derril.lucci@gmail.com>
Reply-To: <ruby-talk@ruby-lang.org>
Newsgroups: comp.lang.ruby
Date: Sat, 14 Aug 2010 04:02:04 +0900
To: ruby-talk ML <ruby-talk@ruby-lang.org>
Subject: 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:in `require'
  from SQL.rb:2

any help is appreciated.

cheers,
  dlucci
--
Posted via http://www.ruby-forum.com/\.

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'

···

On Aug 13, 4:02 pm, Derril Lucci <derril.lu...@gmail.com> wrote:

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.

--
Luis Lavena