phil has a blog - Snow Leopard: Install Memcached on Mac

Snow Leopard: Install Memcached on Mac

https://wincent.com/wiki/Installing_memcached_1.4.5_on_Mac_OS_X_10.6.6_Snow_Leopard

https://wincent.com/wiki/Testing_memcached_with_telnet

1. build and install libevent (libevent-2.0.12-stable.tar.gz)

http://monkey.org/~provos/libevent/

Unzip, cd inside and do the usual

./configure
make
sudo make install

2. build and install memcached (memcached-1.4.6.tar.gz )

http://code.google.com/p/memcached/downloads/list

./configure
make
sudo make install

3. Quick test, start daemon

memcached -d

telnet

telnet localhost 11211

Try setting and getting…

set hi 1 0 5
hello

STORED

then..

get hi

VALUE hi 1 5
hello
END

Now for php5

1. libmemcached (libmemcached-0.50.tar.gz)

https://launchpad.net/libmemcached/+download

./configure
make
sudo make install

2. PECL memcached (memcached-2.0.0b2.tgz)

http://pecl.php.net/package/memcached

phpize
./configure
make
sudo make install

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20090626/

3. Modify your php.ini configuration file and make sure you have the following line included:

extension = memcached.so

..then Restart apache server

4. PECL memcache (memcache-2.2.6.tgz)

http://pecl.php.net/package/memcache

phpize
./configure
make
sudo make install

extension = memcache.so

..then Restart apache server