当前位置: 首页 > 知识库问答 >
问题:

symfony-无法将您的需求解析为一组可安装的软件包

高弘光
2023-03-14

我正在尝试设置从github repo克隆的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"
}

谢谢!

共有1个答案

水渊
2023-03-14

编写器明确指出,您的系统丢失了ext mongolib icu,以及依赖于第二个的symfony/icu

对于ext-mongo,检查您的php.ini如果扩展=mongo.so被注释,如果是,取消注释。

对于lib-icu,你错过了php的intl扩展,你可以遵循以下答案:通过Composer安装Symfony 2.3. x时lib-icu依赖的问题

 类似资料:
  • 我是symfony1的新手。4.我正在尝试在现有项目中安装composer我运行安装命令获取以下信息: 加载包含包信息的composer存储库安装依赖项(包括require dev)无法将您的需求解析为可安装的包集。 问题一: 潜在原因: 包名中的一个错别字 根据您的最小最大稳定性设置,该软件包没有足够稳定的版本,请参阅https://groups.google.com/d/topic/compo

  • 我试图安装cakephp使用作曲家本教程,但在我运行命令后: 我得到的错误: 问题1-cakephp/cakephp-codesniffer 3.0.0需要squizlabs/php_codesniffer^3.0.0- 若要启用扩展,请验证是否已在中启用它们。ini文件:-/etc/php/7.0/cli/php。ini-/etc/php/7.0/cli/conf.d/10-opcache。in

  • 当我运行时,我收到一些有线输出。 这是我的composer.json。 我该如何解决这个问题?

  • 我在python中的安装工具版本是28.8.0。pip版本是9.0.1。我不允许安装软件包,我收到以下错误消息: 使用缓存的numpy-1.12.1.zip收集numpy 命令的完整输出Python setup . py egg _ info:< br > trace back(最近一次调用last): File " ",第1行,文件" C:\ Users \ udari \ AppData \

  • 我正在为我的一个讲座的一个项目工作,我需要下载软件包心理学2,以便使用postgresql数据库。不幸的是,当我尝试pip的安装心理g2以下错误弹出: 有人知道为什么会这样吗?提前谢谢!

  • 我正在apache Karaf 3.0.3中创建一个简单的Echo服务包,我有我的Activator类, 我可以通过Eclipse创建捆绑包,使用以下Manniest文件 我还有下面的POM文件 也是我的回声课 当我在karaf 3.0.3上部署此应用程序时,我面临以下问题 > 在尝试启动包时获取以下堆栈跟踪 错误:Bundle com。公司osgi[112]启动/停止捆绑包时出错。(org.os