Setting up docker on Mac OS – php-intl cannot be installed
I have the following problem:
For that I created an image using the below Dockerfile.
The Problem is, that my php-intl-Extension cannot be installed.. I tried various method. For example to enable it in php.ini via:
None of the methods will work. Here is the content of my Dockerfile:
FROM php:5.5-apache # use own php.ini file COPY config/php.ini /usr/local/etc/php/ # get some php-extensions RUN apt-get update && apt-get install -y \ libfreetype6-dev \ libjpeg62-turbo-dev \ libmcrypt-dev \ libpng12-dev \ libicu52 \ libicu-dev \ zlib1g-dev \ && docker-php-ext-install -j$(nproc) iconv mcrypt \ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ && docker-php-ext-install -j$(nproc) gd RUN apt-get update && apt-get install -y libmemcached-dev \ && pecl install memcached \ && docker-php-ext-enable memcached # Install intl (not working yet): RUN pecl install intl # use own src file COPY src/ /var/www/html/
Can anyone help? That would be so great, because this problem takes a lot of time by now. Thanks in advance!!!
One Solution collect form web for “Setting up docker on Mac OS – php-intl cannot be installed”
You don’t need to use PECL, why don’t you just use:
Generally you also need to
apt-get install libicu-dev for dependencies, but you already have that.