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

PHP Extension Can't be Loaded

8 replies [Last post]
  • Login or register to post comments
Thu, 08/09/2012 - 03:38
fadillzzz
Offline
Joined: 08/09/2012
Groups: None

I'm trying to get PHP to work with Couchbase. I'm running on Ubuntu 12.04 (64-bit) with PHP 5.4.5-dev. I've downloaded PHP SDK 1.1.0-dp2 for Ubuntu 11.10 (64-bit), but I couldn't get the extension to load properly. When I checked the error log it says something about undefined symbol: executor_globals in line 0. I've been searching the forum here and I looked it up on Google too, but couldn't find a solution that works. There's this thing that I found and I believe to be the cause of the problem. I also found that there was someone who posted the same problem and was able to get it fixed by building the SDK manually from source. As I was able to build version 1.0 and get it to work properly, I'm thinking that I can fix the problem by doing the same with the new version. However, I couldn't find any source code for this. The GitHub repository apparently only has the source for 1.0. Can the dev team please share the source code for 1.1 please?

Top
  • Login or register to post comments
Thu, 08/09/2012 - 18:48
fadillzzz
Offline
Joined: 08/09/2012
Groups: None

Nevermind... finally found the right repository that apparently is created under a different account by the team.

Top
  • Login or register to post comments
Wed, 08/15/2012 - 12:05
daschl
Offline
Joined: 05/19/2012
Groups: None

Hi,

the correct repository is can be found here: https://github.com/couchbase/php-ext-couchbase

If you run the latest master, make sure to also use the latest version of libcouchbase (use the preview apt-repo): deb http://packages.couchbase.com/preview/ubuntu oneiric oneiric/main

If you have any questions, feel free to ask them here!

Top
  • Login or register to post comments
Fri, 08/24/2012 - 12:34
ingenthr
Offline
Joined: 03/16/2010
Groups:

Even better is to use prebuilt binaries wherever possible. Then you get the benefit of our testing and control of the toolchain when building.

Top
  • Login or register to post comments
Wed, 08/29/2012 - 03:46
giuseppe
Offline
Joined: 08/29/2012
Groups: None

Hi all,

I have successfully installed CouchBase Server 1.8 on Mac OS X.
I tried to load the PHP module in Zend Server but when I restart PHP, I have the following error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/couchbase.so' - (null) in Unknown on line 0

Can anyone help me?
Thanks.

Top
  • Login or register to post comments
Wed, 08/29/2012 - 05:45
daschl
Offline
Joined: 05/19/2012
Groups: None

I haven't used Zend Server on OS X yet, but nearly on all other platforms.

This issue isn't couchbase-specific, because it looks like your couchbae.so extension isn't exactly there where the Zend Server expects it.

Make sure you place it there where all other .so files are placed (/usr/local/zend/lib/php_extensions in your case). You can also check the php.ini to see where the extension_dir points to.

Note that you also need to install the C-library: http://www.couchbase.com/develop/c/current

If you can't get it to work, please share your php.ini and where you want to put the couchbase.so extension.

Best,
Michael

Top
  • Login or register to post comments
Wed, 08/29/2012 - 18:36
ingenthr
Offline
Joined: 03/16/2010
Groups:

Also note that php -i or php_info() will tell you what your current extensions dir is.

Top
  • Login or register to post comments
Fri, 09/21/2012 - 23:06
motin
Offline
Joined: 09/21/2012
Groups: None

For anyone looking how to get the Couchbase 2.0 compatible php extension installed: http://neamlabs.tumblr.com/post/32033567883/couchbase-2-0-beta-php-exten...

Top
  • Login or register to post comments
Tue, 11/27/2012 - 20:38
jross
Offline
Joined: 11/27/2012
Groups: None

I am also having issues getting the PHP extension to load on an OS X 10.8 system with Zend Server.

However I'm getting a different error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/couchbase.so' - dlopen(/usr/local/zend/lib/php_extensions/couchbase.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/couchbase.so: mach-o, but wrong architecture in Unknown on line 0

I've tried both the current and next versions of the C client library and the Couchbase PHP extension and I get the error for both releases. I'm completely stumped after spending a good part of the past two days trying to get it to work. The Couchbase C client library was installed with brew.

Does anyone have a suggestion?

Thank you kindly.

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