2014-10-11 60 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