I have compiled the rpm for CentOS/RedHat 5.x 32bits and 64bits
The steps are to create a rpm package from source.
If you need to just install, download it
x64bits
x32bits
Requires
# yum install libevent livevent-devel
(make sure its ver. 1.4.13)
To just run memcached all you need is libevent-1.4.13-1
1. Download
# wget “http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz”
2. Setup rpm’s (dont have to be root)
$ mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
$ echo ‘%_topdir %(echo $HOME)/rpmbuild’ > ~/.rpmmacros
$ rpmbuild -v -tb memcached-1.4.13.tar.gz
***rpmbuild, if not installed
# yum install rpm-build redhat-rpm-config make gcc
It should have created
/root/rpmbuild/RPMS/i386/memcached-1.4.13-1.i386.rpm
or
/root/rpmbuild/RPMS/x86_64/memcached-1.4.13-1.x86_64.rpm
. Install
# groupadd –gid 8889 memcached && useradd –uid 8889 –gid 8889 –home-dir /var/empty/memcached –shell /sbin/nologin memcached
# rpm -qa | grep libevent || yum install libevent
# rpm -ihv memcached-1.4.5-1.x86_64.rpm
# chkconfig –add memcached && chkconfig –level 23 memcached on
# vi /etc/sysconfig/memcached
PORT=11211
USER=memcached
MAXCONN=1024
CACHESIZE=64
OPTIONS=””
. Testing/Executing
# service memcached start && netstat -anpl | grep 11211
…
tcp 0 0 :::11211 :::* LISTEN 14192/memcached
refs.
http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment