Sunday, May 9, 2010

Installing Memcached From Source

If you encounter problems because of a bug in the RPM package, you can always follow these simple steps in installing memcached for your *nix system. The following steps have been tested to work against RHEL and CentOS operating systems.

See below.

First, Install the libevent dependency.
cd /usr/local/src
tar -xzvf libevent-1.4.9-stable.tar.gz
cd libevent-1.4.9-stable
./configure --prefix=/usr/local
make; make install

Then, install memcache.
cd /usr/local/src
tar -xzvf memcached-1.4.5.tar.gz
cd memcached-1.4.5
LDFLAGS='-Wl,--rpath /usr/local/lib' ./configure --prefix=/usr/local
make; make install

Test your installation.
memcached -u root -d
ps -aux | grep memcached
telnet localhost 11211
If you connected properly then you have successfuly installed memcached. All you have to do now is find a suitable memcached client for your use.

This installation procedure usually eliminates errors generated by the dependency
  • Related Links Widget for Blogspot

No comments: