PHP SDK on OSX
Sat, 07/21/2012 - 20:42
I'm hoping someone here can help with getting the PHP SDK rolling on OSX.
I tried using the prebuilt 1.0 binary and no matter what version of libcouchbase I compile I get:
Reason: Incompatible library version: couchbase.so requires version 6.0.0 or later, but libcouchbase.1.dylib provides version 4.0.0 in Unknown on line 0
Some of the other forum entries suggest compiling the php extension myself to fix this, but trying to make the extension keeps giving me the following:
sh-3.2# make /bin/sh /Users/crow/coubase_extension/tmp/php-ext-couchbase/libtool --mode=compile cc -I. -I/Users/crow/coubase_extension/tmp/php-ext-couchbase -DPHP_ATOM_INC -I/Users/crow/coubase_extension/tmp/php-ext-couchbase/include -I/Users/crow/coubase_extension/tmp/php-ext-couchbase/main -I/Users/crow/coubase_extension/tmp/php-ext-couchbase -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/usr/local/include/ -DHAVE_CONFIG_H -g -O2 -c /Users/crow/coubase_extension/tmp/php-ext-couchbase/couchbase.c -o couchbase.lo mkdir .libs cc -I. -I/Users/crow/coubase_extension/tmp/php-ext-couchbase -DPHP_ATOM_INC -I/Users/crow/coubase_extension/tmp/php-ext-couchbase/include -I/Users/crow/coubase_extension/tmp/php-ext-couchbase/main -I/Users/crow/coubase_extension/tmp/php-ext-couchbase -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -I/usr/local/include/ -DHAVE_CONFIG_H -g -O2 -c /Users/crow/coubase_extension/tmp/php-ext-couchbase/couchbase.c -fno-common -DPIC -o .libs/couchbase.o /Users/crow/coubase_extension/tmp/php-ext-couchbase/couchbase.c:1159: error: expected ‘)’ before ‘request’ /Users/crow/coubase_extension/tmp/php-ext-couchbase/couchbase.c: In function ‘php_couchbase_create_impl’: /Users/crow/coubase_extension/tmp/php-ext-couchbase/couchbase.c:1287: error: ‘php_couchbase_complete_callback’ undeclared (first use in this function) /Users/crow/coubase_extension/tmp/php-ext-couchbase/couchbase.c:1287: error: (Each undeclared identifier is reported only once /Users/crow/coubase_extension/tmp/php-ext-couchbase/couchbase.c:1287: error: for each function it appears in.) make: *** [couchbase.lo] Error 1
I'm quite stuck at the moment because I can't use the one provided and I can't compile my own :( Any help will be much appreciated.
Sorry for the long delay to reply.
That may be our bug. One workaround might be to install the libcouchbase 1.1.x via homebrew. See couchbase.com/develop/c/next for details.
The reason I say this is that it appears it may have been compiled against the wrong binary. That'd be our bug. I'll look into this as well.