There’s quite a few guides out there to install memcached and libevent but here are the steps I took to get it installed. This is largely based around checking out my history entries, but, it doesn’t the job! Note that if you don’t add the prefix to configure libevent you can end up with bits everywhere and it getting a little bit fiddly.


[[email protected] ~] wget http://www.monkey.org/~provos/libevent-1.4.10-stable.tar.gz
[[email protected] ~] tar xvfz libevent-1.4.10-stable.tar.gz
[[email protected] ~] cd libevent-1.4.10-stable
[[email protected] libevent-1.4.10-stable] ./configure --prefix=/usr/local
[[email protected] libevent-1.4.10-stable] make && make install
[[email protected] libevent-1.4.10-stable] cd ~
[[email protected] ~] vi /etc/ld.so.conf.d/libevent-i386.conf
	insert:
	/usr/local/lib/
[[email protected] ~] ln -s /usr/local/lib/libevent-1.4.so.2 /lib/libevent-1.4.so.2
[[email protected] ~] wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz
[[email protected] ~] tar xvfz memcached-1.4.4.tar.gz
[[email protected] ~] cd memcached-1.4.4
[[email protected] memcached-1.4.4] ./configure --with-libevent=/usr/local
[[email protected] memcached-1.4.4] make && make install

Now you should be able to run memcached.

memcached -vv -u nobody

Alternatively of course you can use yum but that’s no fun and not always the latest version.