Install Memcached from source on Debian
Debian is quite simply excellent, and I wouldn’t even consider running any other Linux distribution in production anymore.
Occasionally though, there are packages that become a bit outdated, and a source install is needed.
For me, Memcached is one of those packages. The latest in the Debian Lenny Apt repositories is 1.2.2, but the latest stable build of Memcached is 1.4.4. Good luck seeing that in the stable apt repositories anytime soon 🙂
So, to make life easy, I’ve put together a fairly simple bash script that downloads and installs Memcached, and libevent, for you.
The script is a blunt instrument, and assumes…
- You haven’t installed memcached from apt repositories on this machine
- You won’t be sad when it puts config and startup files at
- /etc/memcached.conf
- /etc/init.d/memcached
- /usr/share/memcached/scripts/start-memcached
If you have installed memcached using apt, I suggest uninstalling it first, and backup the 3 config files.
This script has worked for me on Debian Lenny, and Debian Etch.
Download the installation script
I would love to hear if this works for you 🙂
Originally posted at Wandering Coder
Explore posts in the same categories: debian, gist, howto, memcached
February 28, 2010 at 1:12 am
Hi, nice script.
You don’t need:
If we’re talking about debian/ubuntu/etc, instead of:
You can simply do:
Without installing nothing 🙂
March 8, 2010 at 8:58 pm
I have been in the habit of using sysv-rc-conf for so that long I forgot all about update-rc.d.
Thanks for the reminder!
January 23, 2011 at 2:02 pm
Your script exactly solved my problem. Thank you really.
May 17, 2011 at 12:19 am
Thank you very much =).