Linux – Installing memcached in Ubuntu server 9.04

linuxmemcachedUbuntu

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

Best Answer

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.