About Memcached
Memcached is a high performance caching system which is used by many of the world’s top trafficked websites. Including LiveJournal, Facebook, and many of our own websites. It enables you to save data results that would normally (in most cases) come from a database into memory. This can make your application thousands of times faster. In this post, we will show you how to install memcached on CentOS (or Fedora Core) while overcoming a common obstacle: The libevent.so module not being found.
Installing Memcached on CentOS / Fedora Core
To install memcached on Cent OS without getting the error
./memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory
Run the command
yum install libevent-devel
The complete steps to compiling and installing memcached are as follows:
- Make sure you have a GCC Compiler. If not, run
yum install gcc - Install the libevent dependency
yum install libevent-devel - Download the latest memcached source from www.memcached.org
wget “http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz“ - Unzip
tar zxpfv memcached* - Change directory into unziped dir
cd memcached* - Configure Memcached
./configure - Make and Install
make install - Run memcached: These values may not work for you but they are just to make sure memcached will run.
./memcached -u nobody -m 48 -p 11211 - ??
- Profit

