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

php-fpm build error on IMAGEMAGICK #2865

Closed
vlauciani opened this issue Mar 12, 2021 · 1 comment
Closed

php-fpm build error on IMAGEMAGICK #2865

vlauciani opened this issue Mar 12, 2021 · 1 comment

Comments

@vlauciani
Copy link
Contributor

Description:

Building the php-fpm docker image, I get this error:

. . .
Get:167 http://deb.debian.org/debian buster/main amd64 libjxr-tools amd64 1.1-6+b1 [17.0 kB]
Get:168 http://deb.debian.org/debian buster/main amd64 libnetpbm10 amd64 2:10.0-15.3+b2 [86.7 kB]
Get:169 http://deb.debian.org/debian buster/main amd64 libpaper-utils amd64 1.1.28 [18.0 kB]
Get:170 http://deb.debian.org/debian buster/main amd64 libtool all 2.4.6-9 [547 kB]
Get:171 http://deb.debian.org/debian buster/main amd64 netpbm amd64 2:10.0-15.3+b2 [1029 kB]
Fetched 68.3 MB in 7s (9731 kB/s)
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cairo/libcairo2_1.16.0-4_amd64.deb  404  Not Found [IP: 151.101.242.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cairo/libcairo-gobject2_1.16.0-4_amd64.deb  404  Not Found [IP: 151.101.242.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cairo/libcairo-script-interpreter2_1.16.0-4_amd64.deb  404  Not Found [IP: 151.101.242.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cairo/libcairo2-dev_1.16.0-4_amd64.deb  404  Not Found [IP: 151.101.242.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c if [ ${INSTALL_IMAGEMAGICK} = true ]; then     apt-get install -y libmagickwand-dev imagemagick &&     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then       apt-get install -y git &&       cd /tmp &&       if [ ${IMAGEMAGICK_VERSION} = "latest" ]; then         git clone https://github.com/Imagick/imagick;       else         git clone --branch ${IMAGEMAGICK_VERSION} https://github.com/Imagick/imagick;       fi &&       cd imagick &&       phpize &&       ./configure &&       make &&       make install &&       rm -r /tmp/imagick;     else       pecl install imagick;     fi &&     docker-php-ext-enable imagick ;fi' returned a non-zero code: 100

the problem can be solved adding a simple apt-get update -yqq before apt-get install -y libmagickwand-dev imagemagick here:

I'll start a PR to solve the problem.

@vlauciani
Copy link
Contributor Author

ops! sorry... this is a duplicate of: #2856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant