views:

175

answers:

1

I accidentally ran:

sudo gem install sqlite3

instead of:

sudo gem install sqlite3-ruby

So now when I run gem list I get:

gem list

*** LOCAL GEMS ***

sqlite3 (0.0.7)
sqlite3-ruby (1.2.5)

What is the difference between the two? And do I need both?

+1  A: 

sqlite3-ruby is the gem you probably need. It is the only sqlite gem I have installed.

sqlite3 (0.0.7) is described here: as SQLite3 FFI bindings for Ruby 1.9

daustin777
ok not sure what ffi is but i have seen that listed in my gems. After a little reading up on ffi, I'm guessing that if I want to develop gems, I might use the sqlite3 bindings?
DJTripleThreat
FFI is a Ruby gem that makes it easy to create Ruby classes that are wrappers for compiled libraries (generally compiled from C, though that's not necessary).
James A. Rosen