After you build sqlite, can you check what it's linked against? On OS X
it's `otool -L /path/to/dylyb`, on Linux I *think* it's `ldd
/path/to/lib`.
Make sure it's linked against the right version of sqlite3. Also, there
is a way to see what libraries get loaded at runtime. On OS X, like
this:
$ DYLD_PRINT_LIBRARIES=1 ruby -e'require "sqlite3"'
On Linux like this (though I didn't test it):
$ LD_TRACE_LOADED_OBJECTS=1 ruby -e'require "sqlite3"'
That should tell you which shared libraries are getting loaded. You
should be able to verify the right version is getting loaded. Just a
shot in the dark, but you may need to add /usr/local/lib to you
ld.so.conf.
--
Aaron Patterson
http://tenderlovemaking.com/