- Memcached - link - http://www.memcached.org/
- Libevent - Download link - http://libevent.org/
- Download both Memcached and Libevent source files (.tar.gz).
- Install Libevent first since its a dependency for Memcached to work.
./configure -prefix=/opt/libevent
make
sudo make install
- Above commands should install Libevent under /opt/libevent/
- Install Memcached
./configure --with-libevent=/opt/libevent/ -prefix=/opt/memcached
make
sudo make install
- Above commands should install Memcached under /opt/memcached/
- Start Memcached
/opt/memcached/bin/memcached -d
- This should start memcached on default port 11211