Error installing PHP SDK 2.0 on MAC OS


#1

On MAC OS, I installed Couchbase Server 3.0. Then tried to install the PHP SDK 2.0 by using pecl install couchbase. Here is the error I get:

error: use of undeclared identifier 'LCB_VALUE_F_JSON’
PCBC_LONG_CONSTANT(“VALUE_F_JSON”, LCB_VALUE_F_JSON);
^
/private/tmp/pear/install/couchbase/couchbase.c:6:42: note: expanded from macro 'PCBC_LONG_CONSTANT’
REGISTER_LONG_CONSTANT("COUCHBASE_"key, val, CONST_CS | CONST_PERSISTENT)
^
/usr/include/php/Zend/zend_constants.h:41:103: note: expanded from macro ‘REGISTER_LONG_CONSTANT’
#define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
^
1 error generated.

Can someone help?
Thanks,
Scott


#2

The PHP SDK requires libcouchbase version 2.4.0 or higher, please install the latest version as per here: http://docs.couchbase.com/developer/c-2.4/download-install.html