Closed pws2016 closed 11 months ago
The following worked for me
RUN set -eux; \
apt-get update; \
apt-get install -y\
libicu-dev; \
docker-php-ext-install intl; \
rm -rf /var/lib/apt/lists/*;
For some weird reasons I am having the same issue installing the "intl" package.
This is the error I am getting:
Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/intl.so (Error loading shared library libicuio.so.73: No such file or directory (needed by /usr/local/lib/php/extensions/no-debug-non-zts-20220829/intl.so)), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/intl.so.so (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20220829/intl.so.so: No such file or directory)) in Unknown on line 0
I am using the official php:8.2-fpm-alpine image.
This works for Alpine variants
FROM php:8.2-fpm-alpine
RUN set -eux; \
apk add --no-cache \
icu-dev; \
docker-php-ext-install intl;
I am having the same issue, this is my Dockerfile:
FROM php:7.4.22-apache
RUN a2enmod rewrite
RUN apt-get update \
&& apt-get install -y zlib1g-dev g++ git libicu-dev unzip zip libzip-dev zip libxml2-dev libonig-dev libcurl3-openssl-dev npm\
&& docker-php-ext-install intl opcache pdo pdo_mysql mysqli soap mbstring xml curl\
&& pecl install apcu \
&& docker-php-ext-enable apcu \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip
@talha-core that builds successfully for me
Since we can't reproduce a failure, I'm sorry but there's not much we can do here. :see_no_evil:
Hello i'm beginner with docker and i want add the extension intl. In my file docker i write this:
But i get error as :
How i must update my file to resolve this? Thanks