php couchbase 扩展,安装PHP SDK Couchbase错误

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-23 12:43   24   0

我正在尝试为我的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:

解决方法:

如果未启用,则在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

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP