i'm planning on using membase for my website and i was really struggling to install the memcashed php client on ubuntu with pear, but actually there is an easier way:
$ sudo apt-get install php5-memcached
you dont even need to install the membase server first - this can be done afterwards. hope this helps someone!
Installation
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » http://pecl.php.net/package/memcached.
If libmemcached is installed in a non-standard location, use --with-libmemcached-dir=DIR switch, where DIR is the libmemcached install prefix. This directory has to contain the include/libmemcached/memcached.h file.
Zlib is required for compression support. To specify non-standard installation of Zlib, use --with-zlib-dir=DIR switch, where DIR is the Zlib install prefix.
Session handler support is enabled by default. To disable it, use --disable-memcached-session switch.
memcached 1.0.1 will compile against libmemcached 0.34.
Due to bug http://pecl.php.net/bugs/bug.php?id=17395
memcached 1.0.2 requires libmemcached 0.39+ instead.
At present memcached-1.0.0 does not compile with libmemcached-0.38. This is apparently due to libmemcached chaning the API.
For evidence, see this bug: http://pecl.php.net/bugs/bug.php?id=17070
Note: I am encountering the same 'memcached_st' has no member named 'hash' error on a Debian lenny amd_64 box.
If your server has --enable-json=shared as mine did, this extension requires you to have extension=json.so to load properly.
