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

Unable to load dynamic library '/usr/lib/php5/20100525/couchbase.so' - undefined symbol: php_json_decode

4 replies [Last post]
  • Login or register to post comments
Sat, 03/16/2013 - 05:55
tmysik
Offline
Joined: 03/16/2013
Groups: None

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 Rethans

I 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

Top
  • Login or register to post comments
Mon, 03/18/2013 - 14:09
trond
trond's picture
Offline
Joined: 03/15/2010
Groups: None

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

Top
  • Login or register to post comments
Wed, 03/20/2013 - 23:21
tmysik
Offline
Joined: 03/16/2013
Groups: None

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.

Top
  • Login or register to post comments
Thu, 03/21/2013 - 00:38
trond
trond's picture
Offline
Joined: 03/15/2010
Groups: None

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

Top
  • Login or register to post comments
Sun, 03/24/2013 - 00:10
tmysik
Offline
Joined: 03/16/2013
Groups: None

trond wrote:
We'll happily accept patches that helps us move in the right direction.

Sorry, your product, your responsibility ;)

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