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 http://www.monkey.org/~provos/libevent-1.4.10-stable.tar.gz
[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/ld.so.conf.d/libevent-i386.conf
	insert:
	/usr/local/lib/
[root@host ~] ln -s /usr/local/lib/libevent-1.4.so.2 /lib/libevent-1.4.so.2
[root@host ~] wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz
[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

You can follow any responses to this entry through the RSS 2.0 feed.

You can leave a comment or leave a trackback from your own site.

3 Responses to “Installing memcached on CentOS 5 with libevent”

  1. ehcache.net on January 9th, 2011 at 10:30 am

    Installing memcached on CentOS 5 with libevent…

    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 co…

  2. Pratheeban on July 9th, 2011 at 2:31 am

    Was useful………Thanks

    ERROR
    $ /usr/local/bin/memcached -u nobody -d -m 64 -l 192.168.128.35 -p 11211
    /usr/local/bin/memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory

    SOLUTION
    http://www.vbseo.com/blogs/danny-bembibre/install-memcached-217/

  3. jake tors on July 18th, 2011 at 4:56 pm

    I would say use yum, whether you consider it less fun or not. “YUM INSTALL MEMCACHED”

Leave a Reply

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