Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing memcached for a django project

From the django docs:

After installing Memcached itself, you'll need to install a memcached binding. There are several python memcached bindings available; the two most common are python-memcached and pylibmc.

The pylibmc docs have their own requirements:

-libmemcached 0.32 or later (last test with 0.51) -zlib (required for compression support) -libsasl2 (required for authentication support) 

So it seems to me that I need to do the following:

-install memcached -install libmemcached -install zlib -install libsas12 -install pylibmc 

How/where can I do this? I've been used to just pip installing whatever I need but I can't even tell which of these are python packages. Are these bundled together anywhere?

like image 330
Matt Parrilla Avatar asked Oct 03 '11 14:10

Matt Parrilla


1 Answers

Just do pip install python-memcached and you should be good.

As for installing memcached itself, it depends on the platform you are on.

  • Windows - http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-for-php/
  • OS X - brew install memcached
  • Debian/Ubuntu - sudo apt-get install memcached

On OS X/Linux, just run memcached in the command line.

like image 182
Matt Williamson Avatar answered Sep 29 '22 06:09

Matt Williamson