Unable to load dynamic library '/usr/lib/php5/20100525/couchbase.so' - undefined symbol: php_json_decode
Hi all,
I just followed all the steps to install CB 2.0.0 server and PHP SDK [1] but I get this error:
Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/couchbase.so' - /usr/lib/php5/20100525/couchbase.so: undefined symbol: php_json_decode in Unknown on line 0
PHP 5.4.6-1ubuntu1.2 (cli) (built: Mar 11 2013 14:57:54)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick RethansI tried to load json.so but there is no JSON extension available for PHP (I think it is built-in since PHP 5.2.0).
I am on Kubuntu 12.10, CB server is running fine. I added SDK repo for Ubuntu 12.04 [2] (newer not available), all packages install just fine.
BTW, it would be great if we could simply use pear install couchbase.
Could anyone help me, please? Thanks in advance.
[1] http://www.couchbase.com/develop/php/current
[2] http://www.couchbase.com/develop/c/current
Hi, thanks a lot for your answer!
I have to repeat myself - I would see this as an obstacle for novices, don't you think, guys? Especially if there is no such hint in your _official_ documentation...
Thanks.
Yes. We are aware of the problem and we would really like to resolve the problem (and we are working on trying to improve the experience for everyone). We'll happily accept patches that helps us move in the right direction.
Cheers,
Trond
Sorry, your product, your responsibility ;)
Unfortunately you have to build the module yourself in order to run on 12.10 right now. luckily for you it's really easy :) Install the php5-dev and libcouchbase and execute the following commands in the top directory of the source tree of the php extension:
phpize
./configure
make
then copy modules/couchbase.so to the library directory
Cheers,
Trond