2016-11-18 152 views
3

我試圖安裝PHP SDK我Couchbase集羣和安裝過程中完成一切順利,但是當我在終端我碰到下面的錯誤運行php -i安裝PHP SDK Couchbase錯誤

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企業4.5.1

我跟着這個指南建立PHP SDK:

Link to PHP SDK installation guide

回答

4

啓用擴展= JSON。所以在你的php.ini中如果沒有啓用。如果是,請在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.

+0

喜說,我測試你說什麼,它完美地工作。現在當我運行phpinfo()時,couchbase被加載。 感謝您的快速回答! –