Symfony2问题与composer安装包

时间:2017-01-04 20:28:44

标签: symfony composer-php

我正在使用Symfony2,我正在尝试安装此软件包" troydavisson / phrets"但一直遇到这个错误。我从来没有经历过这样的事情所以我不知道该怎么做。我该如何解决这个问题?

在"结论"它说"结论:删除guzzlehttp / guzzle 6.2.1"但我甚至不知道它的安装。也许我在这里遗漏了一些东西。

我正在运行此命令

php -d memory_limit=-1 composer.phar require troydavisson/phrets

Problem 1
- Installation request for troydavisson/phrets ^2.2 -> satisfiable by troydavisson/phrets[2.2].
- Conclusion: remove guzzlehttp/guzzle 6.2.1
- Conclusion: don't install guzzlehttp/guzzle 6.2.1
- troydavisson/phrets 2.2 requires guzzlehttp/guzzle >=4.0,<6.0 -> satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0, 5.3.1].
- Can only install one of: guzzlehttp/guzzle[5.3.1, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.0.0, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.0.1, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.0.2, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.0, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.1, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.2, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.3, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.4, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.5, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.6, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.7, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.1.8, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.2.0, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.2.1, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.2.2, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.2.3, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[4.2.4, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[5.0.0, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[5.0.1, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[5.0.2, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[5.0.3, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[5.1.0, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[5.2.0, 6.2.1].
- Can only install one of: guzzlehttp/guzzle[5.3.0, 6.2.1].
- Installation request for guzzlehttp/guzzle (locked at 6.2.1) -> satisfiable by guzzlehttp/guzzle[6.2.1].

1 个答案:

答案 0 :(得分:1)

您使用的2个Guzzel版本之间存在冲突。 Composer已经安装了Guzzel,可能是另一个PHP lib需要的。这会给自动装带器带来问题。

如果你专注于错误,你可以看到:

只能安装一个:guzzlehttp / guzzle

troydavisson / phrets 需要特定版本的Guzzel。要解决这个问题,您必须弄清楚哪个lib正在使用Guzzel,如果您不需要它,请将其删除或更新。如果这不能解决您的问题,您必须更新fork并更新并解决版本之间的冲突(确保使用相同的版本)。如果它变得有点复杂,只需选择或找到另一种选择。