Skip to content

pecl install imageick fails with PHP 8.5 #105

@Thomblin

Description

@Thomblin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions