Composer + Rocketeer + ZF2-由于要求冲突,无法安装Rocketeer

时间:2015-06-17 09:20:28

标签: php zend-framework2 composer-php rocketeer

有人可以告诉我如何解决这个问题吗?

Rocketeer在空目录中安装得很好,但与现有项目不一样,不知道为什么。

什么是安装需要什么?

 - Installation request for symfony/console == 2.6.6.0 -> satisfiable by symfony/console[v2.6.6].

composer.json

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "~2.3",
        "doctrine/doctrine-module": "dev-master",
        "doctrine/doctrine-orm-module": "dev-master",
        "zendframework/zend-developer-tools": "dev-master",
        "mandrill/mandrill": "1.0.*"
    }
}

命令

composer require anahkiasen/rocketeer

输出

Using version ^2.2 for anahkiasen/rocketeer
./composer.json has been updated
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
    - Installation request for anahkiasen/rocketeer ^2.2 -> satisfiable by anahkiasen/rocketeer[2.2.0].
    - Conclusion: remove symfony/console v2.6.6
    - Conclusion: don't install symfony/console v2.6.6
    - anahkiasen/rocketeer 2.2.0 requires illuminate/console ~4.2 -> satisfiable by illuminate/console[v4.2.1, v4.2.12, v4.2.16, v4.2.17, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9].
    - illuminate/console v4.2.1 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.12 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.16 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.17 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.2 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.3 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.4 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.5 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.6 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.7 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.8 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.9 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - Can only install one of: symfony/console[v2.5.0, v2.6.6].
    - Can only install one of: symfony/console[v2.5.1, v2.6.6].
    - Can only install one of: symfony/console[v2.5.10, v2.6.6].
    - Can only install one of: symfony/console[v2.5.11, v2.6.6].
    - Can only install one of: symfony/console[v2.5.12, v2.6.6].
    - Can only install one of: symfony/console[v2.5.2, v2.6.6].
    - Can only install one of: symfony/console[v2.5.3, v2.6.6].
    - Can only install one of: symfony/console[v2.5.4, v2.6.6].
    - Can only install one of: symfony/console[v2.5.5, v2.6.6].
    - Can only install one of: symfony/console[v2.5.6, v2.6.6].
    - Can only install one of: symfony/console[v2.5.7, v2.6.6].
    - Can only install one of: symfony/console[v2.5.8, v2.6.6].
    - Can only install one of: symfony/console[v2.5.9, v2.6.6].
    - Installation request for symfony/console == 2.6.6.0 -> satisfiable by symfony/console[v2.6.6].


Installation failed, reverting ./composer.json to its original content.

1 个答案:

答案 0 :(得分:0)

为什么不安装?

Zend Skeleton的已安装依赖项在版本2.6.6中使用symfony / console。

“anahkiasen / rocketeer”在4.2版本中需要“照亮/控制台”,版本2.5中本身需要“symfony / console”。*。

Composer无法安装新软件包,因为将保留已安装的symfony / console版本2.6.6,但与新软件包的依赖性要求不兼容(2.5。*不允许版本2.6.6)。

您可以尝试手动添加新包,然后运行composer update。如果骨架软件包在2.5版本中也允许使用symfony / console,那么这将解析为一组可安装的软件包。