From: Tim Hunter Date: 2008-01-30T09:40:32+09:00 Subject: Re: Newbie question 'require' Serg Koren wrote: > Hi I've installed the sqlite3-ruby gem via gem install. However when > I do a: > > require 'sqlite3' > > I get a LoadError: no such file to load � sqlite3. This is on Mac OSX > 10.5.2. Yes I have slite3 installed and working. I checked the gems > directory and the sqlite3.rb file exists. I'm obviously missing > something obvious. > > 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. -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html