PHP Extension Can't be Loaded
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?
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!
Even better is to use prebuilt binaries wherever possible. Then you get the benefit of our testing and control of the toolchain when building.
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.
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
Also note that php -i or php_info() will tell you what your current extensions dir is.
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...
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.
Nevermind... finally found the right repository that apparently is created under a different account by the team.