title: Can I get Memcached running on a Windows (x64) 64bit environment?
body: <p>Does anyone know <strong>IF</strong>, <strong>WHEN</strong> or <strong>HOW</strong> I can get <a href="https://memcached.org/" rel="noreferrer">Memcached</a> running on a Windows 64bit environment? </p>
  
  <p>I'm setting up a new hosting solution and would much prefer to run a 64bit OS, and since it's an ASP.Net MVC solution with SQL Server DB, the OS is either going to be Windows Server 2003 or (hopefully!) 2008.</p>
  
  <p>I know that this could spill over into a debate regarding 32bit vs 64bit on servers, but let's just say that my preference is 64bit and that I have some <a href="https://blogs.technet.microsoft.com/mscom/2005/09/26/running-microsoft-com-on-64-bitthe-dependencies-the-goodness-the-gotchas/" rel="noreferrer">very</a> <a href="https://blog.codinghorror.com/64-bit-desktop-vs-64-bit-server/" rel="noreferrer">good</a> reasons.</p>
  
  <p>So far, I've tried a number of options and found a <a href="http://blog.rakeshxp.com/2007/09/running-memcached-on-windows.html" rel="noreferrer">bit</a> of <a href="http://www.splinedancer.com/memcached-win32/" rel="noreferrer">help</a> related to getting this up on a 32bit machine (and succeeded I might add), but since the original <a href="http://jehiah.cz/projects/memcached-win32/" rel="noreferrer">Windows port</a> is Win32 specific, this is hardly going to help when installing as a service on x64. It also has a dependency on the <a href="https://libevent.org/" rel="noreferrer">libevent</a> for which I can only get a Win32 compiled version.</p>
  
  <p>I suspect that simply loading all this up in C++ and hitting "compile" (for 64bit) wouldn't work, not least because of the intricate differences in 32 and 64bit architectures, but I'm wondering if anyone is working on getting this off the ground? Unfortunately, my expertise lie in managed code (C#) only, otherwise I would try and take this on myself, but I can't believe I'm the only guy out there trying to get <a href="https://memcached.org/" rel="noreferrer">memcached</a> running on a 64 bit Windows server....am I?</p>
  
  <hr>
  
  <p>Update</p>
  
  <p><strong>Yes I'm afraid I'm still looking for an answer to this - all my efforts (with my pathetic C++ skills) to make a stable build have failed - I've trashed one server and 3 VM's just trying it out so now I turn to the real experts.
  Is anyone planning on porting this to 64bit? Or are you really suggesting that I use MS Velocity instead? I shudder at the thought.</strong></p>
  
  <hr>
  
  <p>Update:
  @Lars - I do use Enyim actually - it's very good, but what you're referring to is a client, rather than the server part.</p>
  
  <p>@DannySmurf - I've only been able to install it as a service on a 32 bit OS. 64 bit OS rejects the installation of this Win32 service. Of course yes, lots of Win32 code works seamlessly on x64 architecture, hence you can run 32bit apps (like Office for instance) or games on Vista/XP 64 etc, but this doesn't translate directly when it comes to services. I'm no expert, I suspect that it has to do with the syncs or eventing that services need to subscribe to, and I suspect that 64 and 32 don't play nicely. I'm happy to be corrected on any of this, but to answer your question - yes I have tried.</p>
  
  <p>@OJ - thanks very much for the straight-forward response. I thought as much, but wasn't sure if anyone else had suggestions or had already gone down this route. Maybe when StackOverflow is LIVE, then more people will respond and let me know if this is something being looked into, and although I can try and compile it myself - I simply can't "trust" (with my C++ experience level) that it would provide "Enterprise Level" reliability in such a crucial component of large scalable solutions. I think it would need educated intervention rather than my unsanitised experimental approach before I could be confident. One little oversight on my part, could bring the site down. Oh well... till next time.</p>