简体   繁体   English

Symfony2和composer没有安装包

[英]Symfony2 and composer not installing packages

I'm trying to install the FOSUserBundle on Symfony2. 我正在尝试在Symfony2上安装FOSUserBundle。

On trying to run this command in the Terminal 试图在终端中运行此命令

composer update friendsofsymfony/user-bundle 作曲家更新friendsofsymfony / user-bundle

I am presented with this error: 我收到了这个错误:

Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. 使用包信息加载composer存储库更新依赖项(包括require-dev)无法将您的需求解析为可安装的软件包集。

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. 问题1 - symfony / icu v1.2.0需要lib-icu> = 4.4 - >请求的链接库icu安装了错误的版本或系统中缺少该版本,请确保提供扩展名。 - 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需要lib-icu> = 4.4 - >请求的链接库icu安装了错误的版本或系统中缺少版本,请确保提供扩展名。 - Installation request for symfony/icu == 1.2.0.0 -> satisfiable by symfony/icu[v1.2.0]. - symfony / icu == 1.2.0.0的安装请求 - > symfony / icu [v1.2.0]可满足。

I have read about the INTL extension not being installed correct, so I followed these instructions , restarted MAMP and the issue is still present! 我已经读过关于INTL扩展没有正确安装,所以我按照这些说明重新启动了MAMP,问题仍然存在!

I've checked with phpinfo() also and it's confirmed that INTL has been installed. 我也检查了phpinfo(),并确认已经安装了INTL。 I'm at a loss on how to get rid of these errors! 我对如何摆脱这些错误感到茫然!

The issue is still present because you are running composer update only for FOSUserBundle. 该问题仍然存在,因为您只为FOSUserBundle运行composer update。

First try to run composer update symfony/icu , and then run composer update friendsofsymfony/user-bundle . 首先尝试运行composer update symfony/icu ,然后运行composer update friendsofsymfony/user-bundle

If this doesn't work, try updating all your vendors with composer update 如果这不起作用,请尝试使用composer update更新所有供应商

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM