And it seems that this is most commonly a problem if people don't have
the sqlite3 libraries and headers installed when they build the
sqlite3-ruby module. I've got those.
"gem install sqlite3-ruby" only populates
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.2
but if I download the gem from rubyforge, and build and install it by
hand, it puts stuff in both...
# gem install sqlite3-ruby
Building native extensions. This could take a while...
Successfully installed sqlite3-ruby-1.2.2
1 gem installed
Installing ri documentation for sqlite3-ruby-1.2.2...
Installing RDoc documentation for sqlite3-ruby-1.2.2...
LoadError: no such file to load -- sqlite3/database
I found this evening that I have this same issue on a new Debian install.
dpkg -l|grep sqlite3
ii libsqlite3-0 3.3.8-1.1
SQLite 3 shared library
ii libsqlite3-dev 3.3.8-1.1
SQLite 3 development files
ii libsqlite3-ruby 1.1.0-2
SQLite3 interface for Ruby
ii libsqlite3-ruby1.8 1.1.0-2
SQLite3 interface for Ruby 1.8
ii sqlite3 3.3.8-1.1
A command line interface for SQLite 3