title: Ruby MYSQL2 gem installation on windows 7
body: <p>I'm trying to installing the mysql2 gem on windows 7 I downloaded the connector from the mysql site and placed the libmysql.dll in ruby200\bin</p>
  
  <p>then do gem install mysql2</p>
  
  <p>These are the results am I being dim here?</p>
  
  <pre><code>Temporarily enhancing PATH to include DevKit...
  Building native extensions.  This could take a while...
  ERROR:  Error installing mysql2:
          ERROR: Failed to build gem native extension.
  
      C:/Ruby200/bin/ruby.exe extconf.rb
  checking for rb_thread_blocking_region()... yes
  checking for rb_wait_for_single_fd()... yes
  checking for rb_hash_dup()... yes
  checking for rb_intern3()... yes
  *** extconf.rb failed ***
  Could not create Makefile due to some reason, probably lack of necessary
  libraries and/or headers.  Check the mkmf.log file for more details.  You may
  need configuration options.
  
  Provided configuration options:
          --with-opt-dir
          --without-opt-dir
          --with-opt-include
          --without-opt-include=${opt-dir}/include
          --with-opt-lib
          --without-opt-lib=${opt-dir}/lib
          --with-make-prog
          --without-make-prog
          --srcdir=.
          --curdir
          --ruby=C:/Ruby200/bin/ruby
          --with-mysql-dir
          --without-mysql-dir
          --with-mysql-include
          --without-mysql-include=${mysql-dir}/include
          --with-mysql-lib
          --without-mysql-lib=${mysql-dir}/
  extconf.rb:37:in `&lt;main&gt;': undefined method `[]' for nil:NilClass (NoMethodError
  )
  
  
  Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.
  3.13 for inspection.
  Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.3.13/ext/mysql2/g
  em_make.out
  </code></pre>