2014-10-11 64 views
0

我无法在heroku上推送我的项目,因为它因为软件包而无法构建。 任何人都可以帮助我做这个工作。我试图将其添加到我的composer.json "ext-intl": "*"heroku上的Symfony无法在推送时安装软件包

感谢您的帮助!

Pushing to [email protected]:myproject.git 
Initializing repository, done. 

-----> Fetching custom git buildpack... done 
-----> PHP app detected 
-----> Resolved composer.lock requirement for PHP >=5.3.3 to version 5.6.1. 
-----> Installing system packages... 
     - PHP 5.6.1 
     - Apache 2.4.10 
     - Nginx 1.6.0 
-----> Installing PHP extensions... 
     - zend-opcache (automatic; bundled, using 'ext-zend-opcache.ini') 
-----> Installing dependencies... 
     Composer version 73e9db5d9952d52a46ecbc20a269a8c5f9c5b011 2014-10-07 15:03:19 
     Loading composer repositories with package information 
     Installing dependencies from lock file 
     Your requirements could not be resolved to an installable set of packages. 

     Problem 1 
      - Installation request for symfony/icu v1.2.1 -> satisfiable by symfony/icu[v1.2.1]. 
      - symfony/icu v1.2.1 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. 
     Problem 2 
      - symfony/icu v1.2.1 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/symfony v2.4.3 requires symfony/icu ~1.0 -> satisfiable by symfony/icu[v1.2.1]. 
      - Installation request for symfony/symfony v2.4.3 -> satisfiable by symfony/symfony[v2.4.3]. 


!  Push rejected, failed to compile PHP app 

回答

0

您正在部署的系统中缺少lib-icu软件包。这是一个非常常见的问题,您需要在服务器层解决,而不是在您的应用程序中解决。

有一个专门用于处理这个问题的手册页:http://symfony.com/doc/current/components/intl.html