yum -y install gcc gcc-c++
First, install the dependency libevent:
cd /usr/local/src
wget http://www.monkey.org/~provos/libevent-2.0.10-stable.tar.gz
tar -xzvf libevent-2.0.10-stable.tar.gz
cd libevent-2.0.10-stable
./configure
make
make install
cd /usr/local/src
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
tar -xzvf memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure
make
make install
Locate the file surely that is in /usr/local/lib and make a symbolic link
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
run memcached
memcached -u root -d
1 comment:
for php 5.2.10 integration
pecl install memcache
You should add "extension=memcache.so" to php.ini
Post a Comment