Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

PHP SDK on OSX

1 reply [Last post]
  • Login or register to post comments
Sat, 07/21/2012 - 20:42
crow
Offline
Joined: 07/21/2012
Groups: None

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.

Top
  • Login or register to post comments
Thu, 09/13/2012 - 16:30
ingenthr
Offline
Joined: 03/16/2010
Groups:

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.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker