我正在尝试在本地计算机上通过带有 Zend Framework 2 的作曲家安装 Doctrine MongoDB ODM模块,但我不断收到错误消息,指出我的计算机中缺少 PHP 扩展 mango。我正在使用安装了 WAMP 2.2 的 Windows 7 x64。我最初安装的是 1.3.1 的 mongodb php 驱动程序。但是,我发现MongoDB ODM还不支持这个驱动程序,所以我降级到 1.2.12。在我再次尝试安装后,我一直收到同样的错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- doctrine/mongodb 1.0.0-BETA3 requires ext-mongo >=1.3.1,<1.4-dev -> the re
quested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.0.0-BETA2 requires ext-mongo >=1.2.12,<1.3-dev -> the r
equested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.0.0-BETA1 requires ext-mongo * -> the requested PHP ext
ension mongo is missing from your system.
- doctrine/doctrine-mongo-odm-module dev-master requires doctrine/mongodb-od
m 1.* -> satisfiable by doctrine/mongodb-odm 1.0.0-BETA4, doctrine/mongodb-odm 1
.0.0-BETA5, doctrine/mongodb-odm 1.0.0-BETA6.
- doctrine/mongodb-odm 1.0.0-BETA4 requires doctrine/mongodb 1.0.0-BETA1 ->
satisfiable by doctrine/mongodb 1.0.0-BETA1.
- doctrine/mongodb-odm 1.0.0-BETA5 requires doctrine/mongodb 1.0.0-BETA1 ->
satisfiable by doctrine/mongodb 1.0.0-BETA1.
- doctrine/mongodb-odm 1.0.0-BETA6 requires doctrine/mongodb >=1.0.0-beta1,<
1.1-dev -> satisfiable by doctrine/mongodb 1.0.0-BETA1, doctrine/mongodb 1.0.0-B
ETA2, doctrine/mongodb 1.0.0-BETA3.
- Installation request for doctrine/doctrine-mongo-odm-module dev-master ->
satisfiable by doctrine/doctrine-mongo-odm-module dev-master.
我检查了 phpinfo,MongoDB 出现在那里。我成功地使用简单的 php 脚本连接到本地数据库,而无需教义。所以我知道 Wamp 和 mongoDB 工作正常。问题是在整合学说时。非常感谢任何解决此问题的想法或建议。谢谢