【问题标题】:symfony - Your requirements could not be resolved to an installable set of packagessymfony - 您的需求无法解析为一组可安装的软件包
【发布时间】:2015-08-22 13:54:06
【问题描述】:

我正在尝试设置从 github 存储库克隆的 Symfony 项目,但在安装依赖项时遇到问题。

当我运行 composer install 时,结果如下:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for doctrine/mongodb 1.0.0-BETA1 -> satisfiable by doctrine/mongodb[1.0.0-BETA1].
- doctrine/mongodb 1.0.0-BETA1 requires ext-mongo * -> the requested PHP extension mongo is missing from your system.
Problem 2
- Installation request for symfony/icu 1.1.x-dev -> satisfiable by symfony/icu[1.1.x-dev].
- symfony/icu 1.1.x-dev requires lib-icu >=3.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 3
- symfony/icu 1.1.x-dev requires lib-icu >=3.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- symfony/symfony 2.3.x-dev requires symfony/icu ~1.0 -> satisfiable by symfony/icu[1.1.x-dev].
- Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].

这是 composer.json

{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
    "psr-0": { "": "src/" }
},

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*",
    "symfony/icu": "1.1.*",
    "doctrine/orm": "2.3.4",
    "doctrine/common": "2.3.0",
    "doctrine/mongodb-odm": "1.0.*@dev",
    "doctrine/mongodb-odm-bundle": "3.0.*@dev",
    "twig/twig": "v1.12.2",
    "twig/extensions": "v1.0.0",
    "monolog/monolog": "1.3.1",
    "symfony/monolog-bundle": "v2.3.0",
    "doctrine/doctrine-bundle": "v1.2.0",
    "doctrine/dbal": "v2.3.2",
    "doctrine/doctrine-fixtures-bundle": "2.2.*",
    "sensio/generator-bundle": "v2.3.4",
    "jdorn/sql-formatter": "v1.2.0",
    "gedmo/doctrine-extensions": "v2.3.5",
    "symfony/assetic-bundle": "2.4.*@dev",
    "symfony/swiftmailer-bundle": "master",
    "jms/security-extra-bundle": "1.1.*",
    "jms/di-extra-bundle": "1.0.*",
    "jms/debugging-bundle": "dev-master",
    "sensio/distribution-bundle": "2.3.*",
    "sensio/framework-extra-bundle": "2.3.*",
    "guzzle/guzzle": "*",
    "rezzza/mailchimp-bundle": "1.0.*@dev",
    "knplabs/gaufrette": "dev-master",
    "knplabs/knp-gaufrette-bundle": "0.2.*@dev",
    "imagine/Imagine": "dev-master",
    "stfalcon/tinymce-bundle": "v0.2.0",
    "gregwar/captcha-bundle": "dev-master",
    "friendsofsymfony/rest-bundle": "1.2.2",
    "jms/serializer-bundle": "0.13.0",
    "chromedia/utilities": "dev-master",
    "chromedia/security-token-bundle": "dev-master"
},
"scripts": {
    "post-install-cmd": [
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
    ],
    "post-update-cmd": [
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
        "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
    ]
},
"config": {
    "bin-dir": "bin"
},
"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web"
},
"minimum-stability": "dev"
}

谢谢!

【问题讨论】:

  • 错误消息是不言自明的。你有什么问题?
  • 您解决问题的第一步是here

标签: php symfony


【解决方案1】:

作曲家明确表示您的系统缺少ext-mongolib-icu 和依赖于第二个的symfony/icu

对于 ext-mongo,如果 extension=mongo.so 已被评论,请检查您的 php.ini,如果是,请取消评论。

对于 lib-icu,您缺少 php 的 intl extension 进行设置,您可以按照以下答案进行操作:Problems with lib-icu dependency when installing Symfony 2.3.x via Composer

【讨论】:

    猜你喜欢
    • 2019-07-15
    • 1970-01-01
    • 2015-06-20
    • 1970-01-01
    • 2018-04-18
    • 2021-10-28
    • 1970-01-01
    • 1970-01-01
    • 2016-02-24
    相关资源
    最近更新 更多