在Windows 10下的xampp上安装couchbase php扩展

时间:2017-06-07 12:16:05

标签: php xampp couchbase

我已多次尝试使用本教程安装couchbase客户端:http://trondn.blogspot.ro/2013/04/couchbase-php-xampp-and-windows.html,但无效,

当我运行composer update时出现以下错误

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_couchbase.dll' - The specified module could not be found.
 in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_couchbase.dll' - The specified module could not be found.
 in Unknown on line 0
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - ytake/laravel-couchbase 0.5.7 requires ext-couchbase ^2.2.2 -> the requested PHP extension couchbase is missing from your system.
    - ytake/laravel-couchbase 0.5.6 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
    - ytake/laravel-couchbase 0.5.5 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
    - ytake/laravel-couchbase 0.5.3 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
    - ytake/laravel-couchbase 0.5.2 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
    - ytake/laravel-couchbase 0.5.1 requires ext-couchbase >=2.2.0 -> the requested PHP extension couchbase is missing from your system.
    - Installation request for ytake/laravel-couchbase ^0.5 -> satisfiable by ytake/laravel-couchbase[0.5.1, 0.5.2, 0.5.3, 0.5.5, 0.5.6, 0.5.7].

我该怎么办?我需要帮助

1 个答案:

答案 0 :(得分:0)

发布的Windows官方PHP SDK二进制文件 https://developer.couchbase.com/server/other-products/release-notes-archives/php-sdk

确保将php_couchbase.dll放入扩展目录,并将libcouchbase.dll放入SAPI PATH(或处理当前目录)。