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
[[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/
[[email protected] ~] ln -s /usr/local/lib/ /lib/
[[email protected] ~] wget
[[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.