I tried to install couchbase php sdk on centos system.As it looks like simple;but there are some known problems(http://www.couchbase.com/communities/q-and-a/centos5-cant-get-php-client-library-cant-install-php-sdk) so i got stucked.
In attempt of finding solution;I find following way of installation
But adding couchbase.so raises following error
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/couchbase.so' - /usr/lib/php/modules/couchbase.so: undefined symbol: php_json_encode in Unknown on line 0
#vim /etc/php.d/json.ini
and at the end of this file(json.ini) add
extension=couchbase.so
Save it and it will start working
(Ref-http://www.couchbase.com/forums/thread/couchbaseso-undefined-symbol-phpjsonencode-unknown-line-0)
In attempt of finding solution;I find following way of installation
- #wget http://packages.couchbase.com/clients/c/libcouchbase-2.2.0_centos62_i686.tar
- #tar -xvf libcouchbase-2.2.0_centos62_i686.tar
- #cd libcouchbase-2.2.0_centos62_i686
- #rpm -ivh libcouchbase2-bin-2.2.0-1.i686.rpm libcouchbase2-core-2.2.0-1.i686.rpm libcouchbase-devel-2.2.0-1.i686.rpm
- #pecl install couchbase
- #vim /etc/php.d/couchbase.ini
But adding couchbase.so raises following error
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/couchbase.so' - /usr/lib/php/modules/couchbase.so: undefined symbol: php_json_encode in Unknown on line 0
- For fixing this
#vim /etc/php.d/json.ini
and at the end of this file(json.ini) add
extension=couchbase.so
Save it and it will start working
(Ref-http://www.couchbase.com/forums/thread/couchbaseso-undefined-symbol-phpjsonencode-unknown-line-0)
No comments:
Post a Comment