ImagickDemos icon indicating copy to clipboard operation
ImagickDemos copied to clipboard

pecl install imageick fails with PHP 8.5

Open Thomblin opened this issue 1 month ago • 0 comments

Trying to install imagick with PHP 8.5, I get the error

/tmp/pear/temp/imagick/imagick.c:28:10: fatal error: ext/standard/php_smart_string.h: No such file or directory

I tried debian and alpine. Log files are attached to this issue

FROM php:8.5-fpm-bookworm AS base

RUN apt-get update  \
    && apt-get install -y --no-install-recommends \
    gcc \
    g++ \
    make \
    autoconf \
    libc-dev \
    pkg-config \
    libmagickwand-dev \
    && pecl install imagick \
    && docker-php-ext-enable imagick

debian.log

and

FROM php:8.5-fpm-alpine3.22 AS base

RUN apk update &&  \
    apk add --no-cache \
    gcc \
    g++ \
    make \
    autoconf \
    libc-dev \
    imagemagick-dev \
    && pecl install imagick \
    && docker-php-ext-enable imagick

alpine.log

Thomblin avatar Nov 24 '25 07:11 Thomblin