From: Pierre-Charles David Date: 2007-04-09T19:45:24+09:00 Subject: Re: "require 'sqlite3'" gives "no such file to load -- sqlite3 (LoadError)" 2007/4/9, Jeffrey 'jf' Lim : > hi, folks, I have been hacking away at this thing for a number of > hours now, and have found no solution. I have absolutely no idea what > happened here, but I do know for a fact that this has always been > working all along. I have ruby (from source), sqlite (from source), > gems, and the sqlite3-ruby gem installed, but try as I might, i keep > hitting into this error. What's wrong? > > ========== > > # ruby -e "require 'sqlite3'" > -e:1:in `require': no such file to load -- sqlite3 (LoadError) If you installed sqlite3 as a gem, you need to "require 'rubygems'" first as gems have their own search path/logic: % ruby -e "require 'rubygems'; require 'sqlite3'" -- http://pcdavid.net/