title: How to compile memcached on Windows?
body: <p>I am trying to get <code>memcached</code> running on Windows. I have downloaded <code>memcached</code> stable latest and compiled it using Mingw under Windows 7. Configure failed with error,</p>
  
  <blockquote>
    <p>checking for libevent directory... configure: error: libevent is
    required.  You can get it from <a href="http://www.monkey.org/~provos/libevent/" rel="noreferrer">http://www.monkey.org/~provos/libevent/</a></p>
  
  <pre><code>  If it's already installed, specify its path using --with-libevent=/dir/
  </code></pre>
  </blockquote>
  
  <p>Then I downloaded <code>libevent</code> and compiled it. This produced 3 DLLs, libeventcore, libevent-extra and libevent-2.0.5.</p>
  
  <p>I ran configure on <code>memcached</code> again with the option <code>--with-libevent</code>. But for some reason, it fails again with the same error. I have no clue on why it is failing. Can anyone help me to resolve this issue? Or is there a better way to get <code>memcached</code> running on Windows? I have seen lot of pre-built binaries for Windows. But all of them uses old versions of <code>memcached</code>. And AFAIK, Windows is officially supported by <code>memcached</code> in the newer versions. </p>
  
  <p>I am using Windows7 64bit version with MinGW.</p>