对Symfony来说很新,我想让CMF工作但我在使用composer安装它时遇到问题
在终端中运行代码时,我得到了这个
警告:锁定文件与composer.json中的最新更改不是最新的。您可能会过时的依赖项。运行更新以更新它们。 您的要求无法解析为可安装的软件包。
问题1 - symfony / icu 1.2.x-dev的安装请求 - >可以通过symfony / icu [1.2.x-dev]来满足 - symfony / icu 1.2.x-dev需要lib-icu> = 4.4 - >请求的链接库icu安装了错误的版本或缺少版本 你的系统,请确保提供它的扩展。问题2
- symfony / icu 1.2.x-dev需要lib-icu> = 4.4 - >请求的链接库icu安装了错误的版本或缺少版本 你的系统,请确保提供它的扩展。
- symfony / symfony 2.3.x-dev需要symfony / icu~1.0 - > symfony / icu [1.2.x-dev]可以满足。 - symfony / symfony 2.3.x-dev的安装请求 - > symfony / symfony [2.3.x-dev]可以满足。
根据要求,我的composer.json看起来像这样......
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"knplabs/knp-paginator-bundle": "2.3.*@dev" },
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "stable",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.3-dev"
}
}
}
我跑了
composer.phar update
没有错误,但其他问题对我来说有点神秘
任何帮助将不胜感激......
答案 0 :(得分:2)
看一下这条评论:https://github.com/composer/composer/issues/1939#issuecomment-18510052。你必须安装php5-intl。