Dan Munk
1/27/2006 11:44:00 PM
Alex Fenton wrote:
> Dan Munk wrote:
> > Hello,
>
> > When I execute:
> > irb(main):001:0> require 'sqlite3'
> >
> > I get the following:
> >
> > LoadError: no such file to load -- sqlite3
> > from (irb):1:in `require'
> > from (irb):1
>
> Two suggestions:
>
> 1) It doesn't look like you've loaded rubygems before you tried to load the sqlite3 gem. If you want Ruby to load libraries from gems, say
>
> require 'rubygems'
>
> before you try and require sqlite3.
>
> You can make ruby do this automatically by using environment variable RUBYOPT, but you'll have to enable this yourself on OS X. Check the rubygems docs.
>
> 2) Make sure you have the sqlite3 library itself installed as well as the ruby interface to sqlite3. It's a separate (easy) download and install from sqlite.org
>
> cheers
> alex
Thanks for responding. If I can use the sqlite3 command to view and
modify existing databases do I still need to install the sqlite3
interface? In the gem list it appears that I have the ruby interface
installed, is that not the case?
Thanks again,
Dan