-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Unable to install IMAP extension (Alpine Linux) #244
Comments
Hi @mvdstam ,
Enjoy ! 😄 |
Hey @Yanntech! Thanks a lot for helping out. Still getting used to Alpine linux. For those interested, my full Dockerfile is as follows:
Thanks again! |
my dockerfile is here ARG PHP_VERSION=7.2
ARG NGINX_VERSION=1.15
ARG VARNISH_VERSION=6.0
FROM php:${PHP_VERSION}-fpm-alpine AS api_platform_php
# persistent / runtime deps
RUN apk add --no-cache \
acl \
file \
gettext \
git \
mysql-client \
;
ARG APCU_VERSION=5.1.11
RUN set -eux; \
apk add --no-cache --virtual .build-deps \
icu-dev \
libzip-dev \
mysql-dev \
zlib-dev \
imap-dev \
; \
\
docker-php-ext-configure zip --with-libzip; \
docker-php-ext-configure imap --with-imap --with-imap-ssl; \
docker-php-ext-install -j$(nproc) \
intl \
pdo_mysql \
zip \
imap \
; \
pecl install \
apcu-${APCU_VERSION} \
; \
pecl clear-cache; \
docker-php-ext-enable \
apcu \
opcache \
imap \
; \
\ any error in this i will get error while building |
Still having a problem installing IMAP on Alpine PHP image. Here is my Dockerfile:
And warning:
Includind |
@DarthLegiON, probably need to keep You may also want to combine your |
@yosifkit thanks for advices! |
Minimal https://github.com/fox91/docker-php-extensions/blob/main/8.0/alpine3.14/imap/Dockerfile FROM php:8.0-alpine3.14
# PHP ext-imap
RUN set -eux; \
persistentDeps=" \
c-client \
"; \
buildDeps=" \
imap-dev \
krb5-dev \
openssl-dev \
"; \
apk add --no-cache --virtual .imap-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .imap-build-deps ${buildDeps}; \
\
docker-php-ext-configure imap \
--with-imap-ssl \
--with-kerberos \
; \
docker-php-ext-install -j$(nproc) imap; \
\
apk del --no-cache --no-network .imap-build-deps Tested with PHP |
|
Search package by filename https://pkgs.alpinelinux.org/contents?file=*libc-client* |
In continuation of #120, I'm getting the same error when trying to install the imap extension on the alpine linux image:
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
My
Dockerfile
:Can anyone point me in the right direction to get this working? Maybe @tianon? 😄 Thanks!
The text was updated successfully, but these errors were encountered: