Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the latest ICU version (got libicu 52.1 instead of 57.1) #307

Closed
mykiwi opened this Issue Sep 30, 2016 · 10 comments

Comments

Projects
None yet
10 participants
@mykiwi
Copy link
Contributor

mykiwi commented Sep 30, 2016

My Dockerfile:

FROM php:7.0-fpm

RUN apt-get update && \
    apt-get install -y libicu-dev && \
    docker-php-ext-install intl

When I run the symfony requirements binary, I got this message:

 * intl ICU version installed on your system is outdated (52.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.

Do you know how can I get the latest ICU version ?
Thanks

@yosifkit

This comment has been minimized.

Copy link
Member

yosifkit commented Oct 3, 2016

That is the latest available in Debian Jessie: https://packages.debian.org/jessie/libicu-dev.

@yosifkit yosifkit closed this Oct 3, 2016

@deguif

This comment has been minimized.

Copy link

deguif commented Nov 23, 2016

Hello @romqin

Here a workaround to your problem. Compile yourself the icu library with the version you want:

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

RUN docker-php-ext-configure intl --with-icu-dir=/usr/local && \
    docker-php-ext-install intl
@fadykstas

This comment has been minimized.

Copy link

fadykstas commented Jan 4, 2017

my solution with OS X was:
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

and than
Specify where ICU libraries and headers can be found [DEFAULT] : /usr/local

@schmunk42

This comment has been minimized.

Copy link

schmunk42 commented Mar 10, 2017

Btw: This rather large test suite yiisoft/yii2#13750 fails with ICU 57.1 but not with ICU 52.1

@SilverFire

This comment has been minimized.

Copy link

SilverFire commented Apr 5, 2017

@schmunk42 ICU rules get changed time-to-time, so assertions may become outdated.
Generally it's not a problem.

@aissasell

This comment has been minimized.

Copy link

aissasell commented Apr 16, 2017

and how to upgrade in Windows

1 similar comment
@0911315

This comment has been minimized.

Copy link

0911315 commented Jun 22, 2017

and how to upgrade in Windows

@yosifkit

This comment has been minimized.

Copy link
Member

yosifkit commented Jun 22, 2017

updated "get the latest icu" here: #455 (comment)

@nbao

This comment has been minimized.

Copy link

nbao commented Jul 6, 2017

i got error on my mac with Mamp Pro
In file included from /private/tmp/pear/temp/intl/php_intl.c:25:
/private/tmp/pear/temp/intl/php_intl.h:23:10: fatal error: 'php.h' file not found
#include <php.h>
^
1 error generated.
make: *** [php_intl.lo] Error 1
ERROR: `make' failed

How can i fix it?

@chucoyos

This comment has been minimized.

Copy link

chucoyos commented Jul 31, 2017

Is there a solution?
intl ICU version installed on your system is outdated (52.1) and does not match the ICU data bundled with Symfony (59.1)
To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.
2017-07-31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.