我想使用 hhvm 来加快安装作曲家更新的过程。一切都很好,直到我想安装需要 mongodb php 扩展的学说/mongodb-odm。我得到以下输出:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- doctrine/mongodb-odm 1.0.x-dev requires doctrine/mongodb >=1.1.5,<2.0 -> satisfiable by doctrine/mongodb[1.2.x-dev, 1.1.5, 1.1.x-dev].
- doctrine/mongodb-odm 1.0.x-dev requires doctrine/mongodb >=1.1.5,<2.0 -> satisfiable by doctrine/mongodb[1.2.x-dev, 1.1.5, 1.1.x-dev].
- doctrine/mongodb 1.2.x-dev requires ext-mongo >=1.2.12,<1.6-dev -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.1.x-dev requires ext-mongo >=1.2.12,<1.6-dev -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.1.5 requires ext-mongo >=1.2.12,<1.6-dev -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.2.x-dev requires ext-mongo >=1.2.12,<1.6-dev -> the requested PHP extension mongo is missing from your system.
- Installation request for doctrine/mongodb-odm 1.0.x-dev -> satisfiable by doctrine/mongodb-odm[1.0.x-dev].
如果我只使用 php-cli 运行 composer update,它工作正常(因为我安装了 mongo 扩展)。但是 hhvm 没有检测到扩展名。
我尝试将以下行添加到 hhvm php.ini 中,但没有任何运气(都像这样和完整路径)
extension=mongo.so
有没有办法使用它?或者我应该只将它用于不需要 php 扩展的依赖项?