From: Scott Shaffer Date: 2013-04-19T05:46:24+09:00 Subject: SQLite3 Ruby 2.0 on Windows After having quite a time working out what needed to be done, I thought I'd share how I got the sqlite3 gem installed on Windows under Ruby 2.0. I installed Ruby 2.0 using RubyInstaller for Windows (32 bit). http://rubyforge.org/frs/download.php/76804/rubyinstaller-2.0.0-p0.exe Installed in c:\ruby2.0.0p0 I installed the correct DevKit. http://rubyforge.org/frs/download.php/76805/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe Installed in c:\ruby2.0.0p0\devkit I created a "knapsack" directory on my C: drive. C:\knapsack I downloaded file sqlite-3.7.15.2-x86-windows.tar.lzma and put it in the knapsack directory. http://packages.openknapsack.org/sqlite/sqlite-3.7.15.2-x86-windows.tar.lzma I extracted that file using the bsdtar.exe program located in devkit\mingw\bin. From the knapsack directory: C:\knapsack>c:\ruby2.0.0p0\devkit\mingw\bin\bsdtar --lzma -xf sqlite-3.7.15.2-x86-windows.tar.lzma That created four directories (bin, include, lib, share) I then ran gem install as follows: C:\knapsack>ruby -v ruby 2.0.0p0 (2013-02-24) [i386-mingw32] C:\knapsack>gem install sqlite3 --platform=ruby -- --with-opt-dir=C:/Knapsack Fetching: sqlite3-1.3.7.gem (100%) Temporarily enhancing PATH to include DevKit... Building native extensions with: '--with-opt-dir=C:/Knapsack' 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, skipping Installing ri documentation for sqlite3-1.3.7 1 gem installed C:\knapsack>irb DL is deprecated, please use Fiddle irb(main):001:0> require 'sqlite3' => true irb(main):002:0> SQLite3::SQLITE_VERSION => "3.7.15.2" irb(main):003:0> exit C:\knapsack> And all was well with the world, finally. Whew! HT: Luis Lavena https://groups.google.com/forum/?fromgroups=#!topic/rubyinstaller/gedIaMryCFQ Hope this helps someone else avoid what I had to go through. -- Posted via http://www.ruby-forum.com/.