title: "no such file to load -- memcached" problem
body: <p>I'm playing with one open source project and have a problem with the "memcached".</p>
  
  <p>Actually I get a "no such file to load -- memcached" error when I do a "rake db:migrate". It appears to me that I should install it somehow, but unfortunately a "gem install memcached" drops a error.</p>
  
  <p>This is my console log:</p>
  
  <pre><code>D:\BitNami RubyStack projects\spot-us&gt;rake db:migrate
  (in D:/BitNami RubyStack projects/spot-us)
  rake aborted!
  no such file to load -- memcached
  
  (See full trace by running task with --trace)
  
  D:\BitNami RubyStack projects\spot-us&gt;gem install memcached
  Building native extensions.  This could take a while...
  ERROR:  Error installing memcached:
          ERROR: Failed to build gem native extension.
  
  C:/web/BitNami_RubyStack/ruby/bin/ruby.exe extconf.rb
  Building libmemcached.
  tar xzf libmemcached-0.32.tar.gz 2&gt;&amp;1
  Patching libmemcached source.
  patch -p1 -Z &lt; libmemcached.patch
  patching file libmemcached-0.32/libmemcached/memcached_response.c
  Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
  
  This application has requested the Runtime to terminate it in an unusual way.
  Please contact the application's support team for more information.
  *** 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:/web/BitNami_RubyStack/ruby/bin/ruby
  extconf.rb:52:in `check_libmemcached': 'patch -p1 -Z &lt; libmemcached.patch' faile
  d (RuntimeError)
          from extconf.rb:34:in `chdir'
          from extconf.rb:34:in `check_libmemcached'
          from extconf.rb:101
  
  
  Gem files will remain installed in C:/web/BitNami_RubyStack/ruby/lib/ruby/gems/1
  .8/gems/memcached-0.20.1 for inspection.
  Results logged to C:/web/BitNami_RubyStack/ruby/lib/ruby/gems/1.8/gems/memcached
  -0.20.1/ext/gem_make.out
  
  D:\BitNami RubyStack projects\spot-us&gt;
  </code></pre>
  
  <p>How can I solve the "memcached" installation problem?</p>
  
  <p>Thx.</p>