From: Markus Arike Date: 2008-01-30T10:26:42+09:00 Subject: Re: Newbie question 'require' Tim Hunter wrote: > Serg Koren wrote: >> Any pointers would be appreciated. >> >> S >> >> > > When you install a gem you must use RubyGems to load it as well. Did you > enable RubyGems in your pgm before reequiring sqlite3? The simplest > (tho' least robust) way is to add > > require 'rubygems' > > at the top of your program. You could also add, export RUBYOPT=rubygems to your .profile file. This is the solution I use as I avoid having to type require 'rubygems' on every script that has a gem lib file as a dependency. If you don't know how to set environment variables in BASH, google would be a good start. -- Posted via http://www.ruby-forum.com/.