我正在尝试安装symfony 2.2。*但它显示此错误
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"sonata-project/admin-bundle": "2.3.*@dev",
"sonata-project/cache-bundle": "dev-master",
"sonata-project/block-bundle": "2.2.*@dev",
"sonata-project/jquery-bundle": "1.10.*@dev",
"sonata-project/doctrine-orm-admin-bundle" : "2.3.*@dev",
"sonata-project/core-bundle": "2.2.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.3.*@dev",
这是出现的错误。 我猜它会按顺序检查每个版本,但最后它不会安装任何版本。
我已多次更改版本,但它已经解决了。
Problem 1
- Conclusion: don't install symfony/symfony v2.2.11
- Conclusion: don't install symfony/class-loader v2.5.0
- Conclusion: don't install symfony/symfony v2.2.10
- Conclusion: don't install symfony/symfony v2.2.9
- Conclusion: don't install symfony/class-loader v2.5.0-RC1
- Conclusion: don't install symfony/symfony v2.2.8
- Conclusion: don't install symfony/symfony v2.2.7
- Conclusion: don't install symfony/class-loader v2.5.0-BETA2
- Conclusion: don't install symfony/symfony v2.2.6
- Conclusion: don't install symfony/symfony v2.2.5
- Conclusion: don't install symfony/class-loader v2.5.0-BETA1
- Conclusion: don't install symfony/symfony v2.2.4
- Conclusion: don't install symfony/symfony v2.2.3
- Conclusion: don't install symfony/class-loader v2.4.6
- Conclusion: don't install symfony/symfony v2.2.2
- Installation request for adesigns/calendar-bundle dev-master -> satisfiable by adesigns/calendar-bundle[dev-master].
- Installation request for sonata-project/admin-bundle 2.3.*@dev -> satisfiable by sonata-project/admin-bundle[2.3.x-dev].
- sonata-project/admin-bundle 2.3.x-dev requires symfony/class-loader ~2.3 -> satisfiable by symfony/class-loader[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.2, v2.3.3, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.0-BETA1, v2.4.0-BETA2, v2.4.0-RC1, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.5.0, v2.5.0-BETA1, v2.5.0-BETA2, v2.5.0-RC1].
- don't install symfony/class-loader v2.3.0|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.1|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.10|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.11|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.12|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.13|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.14|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.15|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.16|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.2|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.3|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.4|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.5|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.6|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.7|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.8|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.3.9|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.0|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.0-BETA1|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.0-BETA2|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.0-RC1|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.1|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.2|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.3|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.4|don't install symfony/symfony v2.2.0
- don't install symfony/class-loader v2.4.5|don't install symfony/symfony v2.2.0
- adesigns/calendar-bundle dev-master requires symfony/symfony ~2.1 -> satisfiable by symfony/symfony[v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9].
- Conclusion: don't install symfony/symfony v2.2.1
答案 0 :(得分:2)
Symfony2.2。*不再支持。 http://symfony.com/roadmap?version=2.2
尝试更改版本说明或按照说明进行操作
答案 1 :(得分:1)
你的问题来自奏鸣曲库。您尝试安装"sonata-project/admin-bundle": "2.3.*@dev"
,而此版本仅根据packagist与Symfony> = 2.3兼容。其他奏鸣曲库也是如此。
所以,你有两个解决方案:
基本上,在需要库之前,如果您指定的版本与其他软件包兼容,则需要检查http://packagist.org。