*This answer is for Ruby 2.0.0 x86, not x64.
I think I have it. The grail. The land of milk and honey. That box in Indiana Jones that the crazy lights shoot out of. Ice cream that doesn't melt in the sun.
After trying just about every answer on here, what finally did it for me (unless I'm hallucinating) was https://stackoverflow.com/a/16524605/765352 (the last comment in How do I install sqlite3 for Ruby on Windows?).
I was running Ruby 2.0.0 x86 on Windows 8, using a RailsInstaller version of Ruby.
Just to elaborate on his answer by providing the links:
Go to http://www.sqlite.org (specifically http://sqlite.org/download.html) and download:
(I have no clue if those last two are needed. And, I'm not going back down the rabbit hole to check.)
Unpack all those ZIPs to a directory of your choice. I used "sqlite-amalgamation-301700". (DIR).
Get into your ruby shell, and type
gem install sqlite3 --platform=ruby -- --with-sqlite3-dir=c:/sqlite-amalgamation-3071602 --with-sqlite3-include=c:/sqlite-amalgamation-3071602
You should see
C:\xx\>gem install sqlite3 --platform=ruby -- --with-sqlite3-dir=c:/sqlite-amalgamation-3071602 --with-sqlite3-include=c:/sqlite-amalgamation-3071602
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-sqlite3-dir=c:/sqlite-amalgamation-3071602 --with-sqlite3-include=c:/sqlite-amalgamation-3071602'
This could take a while...
Successfully installed sqlite3-1.3.7
Parsing documentation for sqlite3-1.3.7
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/sqlite3/sqlite3_native.so, skipp
ing
Installing ri documentation for sqlite3-1.3.7
Done installing documentation for sqlite3 (3 sec).
1 gem installed
Booyah. Take that, auto-compiled nothing. And no thanks to SQLITE, which proved a heavyweight. And all thanks to Google, as always.
References:
this very thread;
the very guy who wrote https://stackoverflow.com/a/16524605/765352;
a bunch of threads talking about sqlite.org;
StackExchange, for not giving up on me;
me, for not giving up on StackExchange;
all the believers out there;
my producer and manager, who loves me (I love you Al).