That is my Dockerfile
FROM php:5.6-fpm
MAINTAINER Pierre-Louis Launay <laupi.frpar@gmail.com>
RUN apt-get update
RUN apt-get install -y libicu-dev
RUN curl -sS -o /tmp/icu.tgz -L http://download.icu-project.org/files/icu4c/59.1/icu4c-59_1-src.tgz \
&& tar -zxf /tmp/icu.tgz -C /tmp \
&& cd /tmp/icu/source \
&& ./configure --prefix=/usr/local \
&& make \
&& make install
RUN docker-php-ext-configure intl --with-icu-dir=/usr/local
RUN docker-php-ext-install intl
When it runs docker-php-ext-install intl we have the following error
...
/usr/src/php/ext/intl/intl_convertcpp.cpp:40:9: error: 'u_strFromUTF8WithSub_59' was not declared in this scope
status);
^
/usr/src/php/ext/intl/intl_convertcpp.cpp: In function 'int intl_charFromString(const icu_59::UnicodeString&, char**, int*, UErrorCode*)':
/usr/src/php/ext/intl/intl_convertcpp.cpp:74:8: error: 'UChar' does not name a type
const UChar *utf16buf = from.getBuffer();
^
/usr/src/php/ext/intl/intl_convertcpp.cpp:76:54: error: 'utf16buf' was not declared in this scope
u_strToUTF8WithSub(*res, capacity - 1, &actual_len, utf16buf, from.length(),
^
Makefile:187: recipe for target 'intl_convertcpp.lo' failed
make: *** [intl_convertcpp.lo] Error 1
ERROR: Service 'engine' failed to build: The command '/bin/sh -c docker-php-ext-install intl' returned a non-zero code: 2
I try several solutions but I have always the same error. I think I miss something but I do not know what ...
That is my Dockerfile
When it runs
docker-php-ext-install intlwe have the following errorI try several solutions but I have always the same error. I think I miss something but I do not know what ...