Skip to content
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

Imagick failing to install: (ERROR: `make -j10 INSTALL_ROOT="/tmp/pear/temp/pear-build-defaultuseryraaVX/install-imagick-3.7.0" install' failed) #979

Closed
jaydrogers opened this issue Sep 27, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jaydrogers
Copy link

jaydrogers commented Sep 27, 2024

Version of install-php-extensions

v.2.5.0

Error description

I received a user report from @manusiakemos that Imagick was not installing.

I broke the issue down to have it very minimal and reproducible with the official PHP images and it is still appearing. Please follow my Docker file below to see the following error:

22.24 Saved /tmp/pear/temp/imagick/ImagickPixel_arginfo.h
22.25 In /tmp/pear/temp/imagick/Imagick.stub.php:
22.25 Unterminated preprocessor conditions
22.26 make: *** [Makefile:196: /tmp/pear/temp/imagick/Imagick_arginfo.h] Error 1
22.26 ERROR: `make -j10 INSTALL_ROOT="/tmp/pear/temp/pear-build-defaultuserAdMKLn/install-imagick-3.7.0" install' failed

Before I open this up on Imagick, I wanted to check in to see if it was something to how the installer installs it? Thanks for maintaining this @mlocati! I am beyond grateful for all the work you do for the PHP community ❤️

Docker image

  • php:8.3-cli, php:8.3-cli-alpine

Minimal Dockerfile

Debian

FROM php:8.3-cli

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions imagick

Alpine

FROM php:8.3-cli-alpine

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions imagick
@jaydrogers jaydrogers added the bug Something isn't working label Sep 27, 2024
@jaydrogers
Copy link
Author

I apologize for the confusion...

Today I learned imagick isn't supported in PHP 8.3 Imagick/imagick#640

It's even clearly labeled in the README of this project 😆🤦‍♂️

Sorry to blow up your inbox! Closing this issue 👍

@fragkp
Copy link

fragkp commented Sep 27, 2024

Out "fix" is to use the current master branch version of imagick:
Imagick/imagick#643 (comment)

@jaydrogers
Copy link
Author

Thanks for posting your solution! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants