Archive for May, 2010

Installing memcached on CentOS 5 with libevent

13 May 2010 22:03

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.

[root@host ~] wget
[root@host ~] tar xvfz libevent-1.4.10-stable.tar.gz
[root@host ~] cd libevent-1.4.10-stable
[root@host libevent-1.4.10-stable] ./configure --prefix=/usr/local
[root@host libevent-1.4.10-stable] make && make install
[root@host libevent-1.4.10-stable] cd ~
[root@host ~] vi /etc/
[root@host ~] ln -s /usr/local/lib/ /lib/
[root@host ~] wget
[root@host ~] tar xvfz memcached-1.4.4.tar.gz
[root@host ~] cd memcached-1.4.4
[root@host memcached-1.4.4] ./configure --with-libevent=/usr/local
[root@host 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.

Filed: General // 3 Comments

What's ianteresting?   •   Twitter   •   About   •   Contact
©2012 Ian Winter. All Rights Reserved.   •   Powered by WordPress   •   Hosted at Memset