Here is the installation process for memcached:
#wget http://memcached.googlecode.com/files/memcached-1.4.9.tar.gz
# tar zvxf memcached-1.4.9.tar.gz
# CD memcached-1.4.9
#./configure--prefix=/usr/local/memcached
# make
# make Install
Start memcached:
#/usr/local/memcached/bin/memcached-d-M 128-l 127.0.0.1-p11211-u Root
Parameter 128 Specifies the amount of memory used
Next is the extension for memcache :
#wget http://pecl.php.net/get/memcache-2.2.6.tgz
# tar
zxfmemcache-2.2.6.tgz
# cd php/bin/phpize
#./configure--with-php/bin/memcache
# make
# make Install
Finally, add the following configuration information to PHP/lib/memcache. So
Note:/usr/local/php/extensions/no-debug-non-zts-20060613/This path may be different, whichever is the one in your machine.
You may experience the following issues during installation
/usr/local/src/memcache-2.2.5/memcache.c:2245:error:too few arguments to function ' Zend_list_insert '
Encountered this problem after the execution of Phpize, found in the memcache.c so
Zend_list_insert (pool, le_memcache_pool);
Change into
Zend_list_insert (pool, Le_memcache_pool tsrmls_cc);
Phpize Compiling and installing memcached