安装 PHP SDK Couchbase 错误
Installing PHP SDK Couchbase error
我正在尝试为我的 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 服务器企业版 4.5.1
我按照本指南设置 PHP SDK:
如果未启用,请在 php.ini 中启用扩展=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.
我正在尝试为我的 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 服务器企业版 4.5.1
我按照本指南设置 PHP SDK:
如果未启用,请在 php.ini 中启用扩展=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.