Problems with lib-icu dependency when installing Symfony 2.3.x via Composer

后端 未结 6 559
轻奢々
轻奢々 2020-12-04 08:48

I\'ve had no problems installing Symfony 2.2.x using Composer, I\'ve always just copied the stable version at http://symfony.com/download.

composer create-pr         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 09:32

    A solution regarding this or similar problems can be found here: ICU and Deployment Problems

    The behavior of composer should be intelligent selecting the right icu-component:

    • symfony/icu 1.0.*: when the intl extension is not available
    • symfony/icu 1.1.*: when intl is compiled with ICU 4.0 or higher
    • symfony/icu 1.2.*: when intl is compiled with ICU 4.4 or higher

    There should be (theoretically) no error installing symfony 2.3. with no intl-extension.

    But you can be trapped when your development-environment differs from your production-server like mentioned in this article:

    • the development machines are compiled with ICU 4.4 or higher, but the server is compiled >with a lower ICU version than 4.4
    • the intl extension is available on the development machines but not on the server.

    When you have no root-access to your production-server you can fix it as mentioned in this article. (tweaking composer.json)

    Hope this additional information helped as it helped me for this special case with different environments.

提交回复
热议问题