title: How do I install sqlite3 for Ruby on Windows?
body: <p>Being really new to Ruby/Rails, and after attempting to resolve the issue myself this weekend I'm making an attempt to seek advice here.</p>
  
  <p>I have a complete Ruby/Apache/Passenger setup done on FreeBSD, and I'm trying to accomplish the task of using Windows as a Ruby development environment.</p>
  
  <p>So far:</p>
  
  <ul>
  <li>Ruby is installed, v2.0.0p0 (2013-02-24) [x64-ming32]</li>
  <li>Rails is installed, v.3.2.12</li>
  <li>I have the Ruby dev kit installed and registered.</li>
  <li>I have the sqlite3 dll/exe copied to the Ruby "bin" folder (which is also in my path using the "Start Command Prompt with Ruby" console.)</li>
  <li>I can start a rails server successfully, and continuing with the <a href="http://guides.rubyonrails.org/getting_started.html" rel="noreferrer">http://guides.rubyonrails.org/getting_started.html</a> tutorial to 3.3.</li>
  <li><p>">rake db:create" tells me:</p>
  
  <p>Please install the sqlite3 adapter: <code>gem install activerecord-sqlite3-adapter</code> (
  sqlite3 is not part of the bundle. Add it to Gemfile.)</p></li>
  </ul>
  
  <p>which I have no "understanding" of. Trying to install activerecord-sqlite3-adapter gives me a "Could not find a valid gem..." </p>
  
  <ul>
  <li><p>">gem install sqlite3" returns:</p>
  
  <p><code>Building native extensions.  This could take a while...</code>
  <code>ERROR:  Error installing sqlite3:</code>
  <code>ERROR: Failed to build gem native extension.</code></p>
  
  <p><code>D:/Development/Ruby200-x64/bin/ruby.exe extconf.rb</code>
  <code>checking for sqlite3.h... *** extconf.rb failed ***</code></p></li>
  </ul>
  
  <p>Right now I'm stuck at the point where I don't even know what state my Ruby on Windows installation is in. I'm trying to follow the main Rails tutorial and it doesn't specify any of these issues (probably because Ruby on Windows seems to be a natural pain for a lot of people.)</p>
  
  <p>What am I missing?!? I'm just trying to install sqlite3 for Ruby on Windows, seems simple right?</p>
  
  <p>If I do <code>"&gt;rais db"</code> the SQLite shell is presented:</p>
  
  <p><code>SQLite version 3.7.15.2 2013-01-09 11:53:05</code></p>
  
  <p>Similar questions with steps that do not resolve my issue:
  <a href="https://stackoverflow.com/questions/1734629/installing-sqlite-3-6-on-windows-7">Installing SQLite 3.6 On Windows 7</a></p>