My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
NewInstallFromPackage  
Installing Memcached Binaries
Updated Aug 22, 2011

The version of memcached you install matters a lot for what support will be available to you. Ancient versions lack bugfixes, statistics, etc. Commands may be missing, and we may not be able to assist you if the software is too old. Try to have at least 1.4.4 or higher, if that's not too difficult ;)

Dependencies

Memcached is a C program, depending on a recent version of GCC and a rececnt version of libevent. The recommended method of installation is to first try your distribution's package manager. If the version it contains is too old, you may have to try installing from a backport, or by source.

Installing From Your Distribution

Debian

apt-get install memcached

You will also need libevent installed, and apt should fetch that for you.

Be warned that most versions of ubuntu and debian have very old versions of memcached packaged. We're working on improving this situation. If you are a Debian user, Debian Backports may have a more recent version available.

Ubuntu

apt-get install memcached - Same as with debian.

Same caveat as debian for issues with old versions being available.

Redhat/Fedora

yum install memcached

Pretty easy eh? Sadly you're likely to pull an old version still.

Commercial Distributions

Membase, Inc. offers memcached capabilities in the (freely available) Membase server. It has a UI based management layer that gives visibility into memcached statistics and builds in proxying. It uses the Open Source bucket engine to build in multi-tenancy for memcached.

Installing Clients

Some of the popular clients will likely be available in your distribution. Search with apt or yum and see what you can find!

libmemcached

Most languages have one or two main clients which depend on libmemcached. This is the standard C library for accessing memcached-speaking servers. Some clients will bundle a compatible version, and some will require it to be installed separately.

PEAR/CPAN/GEM/etc

Don't forget to check the standard repositories for your preferred language. Installing a client might be a simple command or two.

Comment by aristede...@gmail.com, Dec 1, 2010

Installing on FreeBSD

portmaster databases/memcached

(or substitute whatever ports management tool you use)

Comment by philipp....@gmail.com, Jan 28, 2011

To install on Mac OS X (Snow Leopard) there is a package at http://www.box.net/shared/a5ga5kmep0 I use this for development purposes.

Comment by marcus.b...@gmail.com, Feb 16, 2011

An approach that works well on Ubuntu Lucid (which has 1.4.2) is to install the standard package, then build and install the source package and adjust /etc/init.d/memcached and /usr/share/memcached/scripts/start-memcached to point at the binary in /usr/local/bin. I've also requested a backport of 1.4.5 for Lucid.

Comment by RyanLiu99, Mar 25, 2011

Is that possible and how to install on windows server?

Comment by lemie...@gmail.com, Mar 31, 2011

Try http://blog.elijaa.org/index.php?post/2010/10/15/Memcached-for-Windows and Install: http://support.microsoft.com/kb/251192

memcached -h gives you the options you can pass.. "memcached -m 1024" would use 1gb of ram etc..

And install as service as: sc create memcached binpath= "path to bin.exe"

Comment by shashank...@gmail.com, Apr 29, 2011

It would be nice if we had working documentation. The instruction "yum install memcached" on CentOS (Linux) 64 bit fails with this:

> yum install memcached Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Excluding Packages in global exclude list Finished Setting up Install Process No package memcached available. Nothing to do

What's that? CentOS is only the most popular server OS!

Comment by h4fi...@gmail.com, May 6, 2011

for CentOS (Linux) you need to install EPEL Repository to get the memcached package. Refer this http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/

Comment by skipperkongen, Jun 21, 2011

On Mac I used the Homebrew package manager.

brew install libevent # version 2.0.11

brew install memcached # version 1.4.5

brew install libmemcached # version 0.43

Comment by danieljo...@gmail.com, Jun 28, 2011

@skipperkongen libmemcached install on OSX didn't work for me. I had to "brew edit libmemcached" to the following: url 'http://launchpad.net/libmemcached/1.0/0.50/+download/libmemcached-0.50.tar.gz' homepage 'https://launchpad.net/libmemcached/1.0/0.50' md5 'c8627014a37cd821cf93317b8de6f9f8'

Comment by boilerm...@gmail.com, Aug 23, 2011

Can this be installed on VirtualBox??

Powered by Google Project Hosting