Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed Linux Ubuntu on a virtual machine and need to install memcached on it. I tried

apt-get install memcached

but it installs version 1.2.2 (from local repository), which is old. I need to install v 1.4.1 but how do I download it to the Linux box from a command line? I know there should be a way but I am not too good with linux...

Any help would be much appreciated!

Thank you, Andrey

share|improve this question

migrated from Sep 22 '09 at 2:58

This question came from our site for professional and enthusiast programmers.

up vote 7 down vote accepted

Go to the memcached web page; copy the download link; then in a terminal,

tar xzf memcached-1.4.1.tar.gz
cd memcached-1.4.1
./configure && make && sudo make install

Those are generally the basic steps you do when installing Linux software manually, and it doesn't look like memcached is any different.

I'm voting to move to ServerFault since that's where this question belongs anyway, but it's a slow night here and I figured I'd answer here so you get the answer possibly a little more quickly.

share|improve this answer

To install version 1.4.1, follow the instructions of How can I install memcached? from the memcached FAQ (sometimes, official FAQ are helpful...):

For a tutorial, go to: Also consider checking your distribution's package management system (apt, yum, etc).

Generic install instructions are standard. memcached requires libevent to be installed first. This is most likely available via your distribution's package manager.

If your distribution doesn't have memcached or an updated enough version, installing from source is simple. Fetch the tarball from our download page.

    $ tar -zxvf memcached-1.x.x.tar.gz
    $ ./configure
    $ make
    $ make test
    $ sudo make install

use './configure --help' to see all of the options.

To download the tarball, use wget:

    $ wget
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.