我正在尝试通过此链接使用 MongoDB 配置 Laravel 5 。
错误
D:\wamp\www\lfirst>composer 需要 jenssegers/mongodb 您正在运行启用了 xdebug 的 composer。这对运行时性能有重大影响。请参阅https://getcomposer.org/xdebug 为 jenssegers/mongodb 使用版本 ^3.0 ./composer.json 已更新
php artisan clear-compiled 使用包信息加载 composer 存储库 更新依赖项(包括 require-dev) 您的需求无法解析为可安装的包集。
Problem 1 - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system. - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system. - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system. - Installation request for mongodb/mongodb (locked at 1.0.2) -> satisfiable by mongodb/mongodb[1.0.2]. To enable extensions, verify that they are enabled in those .ini files: - D:\wamp\bin\php\php5.5.12\php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. Installation failed, reverting ./composer.json to its original content. D:\wamp\www\lfirst>php --ini Configuration File (php.ini) Path: C:\Windows Loaded Configuration File: D:\wamp\bin\php\php5.5.12\php.ini Scan for additional .ini files in: (none) Additional .ini files parsed: (none)
笔记
我使用窗口服务器;对于其他项目,我也在使用 MongoDB,但它的过程只是 Laravel 的一个问题。