Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Sep 22 '09 at 2:58

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

2 Answers 2

up vote 7 down vote accepted

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

wget http://memcached.googlecode.com/files/memcached-1.4.1.tar.gz
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: http://blog.ajohnstone.com/archives/installing-memcached 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 http://memcached.googlecode.com/files/memcached-1.4.1.tar.gz
share|improve this answer

Your Answer

 
discard

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.