From: Derril Lucci on
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/.

From: Alex Stahl on
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



From: Joseph E. Savard on

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(a)gmail.com>
> Reply-To: <ruby-talk(a)ruby-lang.org>
> Newsgroups: comp.lang.ruby
> Date: Sat, 14 Aug 2010 04:02:04 +0900
> To: ruby-talk ML <ruby-talk(a)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/.
>


From: Luis Lavena on
On Aug 13, 4:02 pm, Derril Lucci <derril.lu...(a)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.
>

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'

--
Luis Lavena