ICU version compatibility Symfony 3.1

2019-01-27 16:48发布

问题:

I have a problem installing symfony 3.1 in php7, nginx and ubuntu 16.04, i have this error:

intl ICU version installed on your system is outdated (55.1) and does not match the ICU data bundled with Symfony (57.1) To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.

How can i solve this issue? can i change symfony and use IC 55.1 instead of ICU 57.1?

回答1:

I presume you get this when you run:

php bin/symfony_requirements

This is just a warning and you can safely ignore the message. I've response to similar questions on this. See this URL for more details:

https://github.com/symfony/symfony/issues/15007



回答2:

To install ICU 57.1 run:

curl -sS -o /tmp/icu.tar.gz -L http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install


回答3:

run

curl -sS -o /tmp/icu.tar.gz -L http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && sudo make install

than run

sudo pecl install intl