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!
インストール手順
この PECL 拡張モジュールをインストールする方法は、 マニュアルの PECL 拡張モジュールのインストール という章にあります。 新規リリース・ダウンロード・ソースファイル・管理者情報・CHANGELOG といった関連する情報については、次の場所にあります。 » http://pecl.php.net/package/memcached.
libmemcached のインストール先が標準の場所とは異なる場合は --with-libmemcached-dir=DIR スイッチを使用します。 ここで、DIR は libmemcached のインストールプレフィックスを表します。 このディレクトリ内に include/libmemcached/memcached.h がなければなりません。
圧縮をサポートするには Zlib が必要です。Zlib のインストール先が標準の場所とは異なる場合は、--with-zlib-dir=DIR スイッチを使用します。 ここで、DIR は Zlib のインストールプレフィックスを表します。
セッションハンドラのサポートはデフォルトで有効となります。これを無効にするには --disable-memcached-session スイッチを使用します。
petermiller1986 att gmail dotttttttt com
11-Feb-2012 04:09
Loreto Parisi
22-Sep-2010 02:44
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.
gpuk at dasserver dot com
02-Mar-2010 10:50
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.
Clint Priest
09-Nov-2009 07:53
If your server has --enable-json=shared as mine did, this extension requires you to have extension=json.so to load properly.
