安装PHP SDK Couchbase错误
作者:互联网
我正在尝试为我的Couchbase集群安装PHP SDK,并且安装过程中的所有操作都顺利完成,但是当我在终端中运行php -i时,出现以下错误:
PHP Warning: PHP Startup: Unable to load dynamic library
‘/usr/lib/php5/20121212/couchbase.so’ –
/usr/lib/php5/20121212/couchbase.so: undefined symbol:
php_json_decode_ex in Unknown on line 0
我不明白为什么Couchbase扩展无法加载.
我的设置是:
Ubuntu服务器14.04
Couchbase Server Enterprise 4.5.1
我遵循此指南来设置PHP SDK:
Link to PHP SDK installation guide
解决方法:
如果未启用,则在php.ini中启用extension = json.so.如果是的话,请在json扩展名后启用couchbase扩展名.
如在couchbase中说的PHP sdk documentation
The Couchbase SDK depends on the JSON PHP extension, so make sure that load order is correct. For example, if your distribution has just a single php.ini file, just insert the line after extension=json.so. If your distribution uses a conf.d-style, name the file with the Couchbase SDK ini so that it will be alphabetically ordered after the JSON extension.
标签:php,couchbase 来源: https://codeday.me/bug/20191026/1937041.html