2013-09-26 92 views
5

我试图在Symfony2上安装FOSUserBundle。Symfony2和作曲家不安装软件包

在试图在终端

composer update friendsofsymfony/user-bundle

运行此命令我跟此错误:

Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - symfony/icu v1.2.0 requires lib-icu >=4.4 -> 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/icu v1.2.0 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. - Installation request for symfony/icu == 1.2.0.0 -> satisfiable by symfony/icu[v1.2.0].

我已阅读有关INTL扩展未安装正确的,所以我也跟着these instructions ,重启MAMP,问题仍然存在!

我检查过phpinfo()也确认INTL已安装。我对如何摆脱这些错误感到茫然!

回答

7

该问题仍然存在,因为您只为FOSUserBundle运行作曲家更新。

首先尝试运行composer update symfony/icu,然后运行composer update friendsofsymfony/user-bundle

如果这不起作用,请尝试更新所有供应商提供composer update

+1

我一直在尝试了几天,你的确切说明解决这个问题。谢谢@edwines! – Ben