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

[7.2.0beta3-fpm] libpng12-dev not available #485

Closed
DaazKu opened this issue Aug 29, 2017 · 9 comments
Closed

[7.2.0beta3-fpm] libpng12-dev not available #485

DaazKu opened this issue Aug 29, 2017 · 9 comments

Comments

@DaazKu
Copy link

DaazKu commented Aug 29, 2017

Status: Downloaded newer image for php:7.2-rc-fpm
 ---> 008dcb3cc91c
Step 2/12 : RUN apt-get update \
    && apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libmemcached-dev \
        libpng12-dev \
        sendmail \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install gd mbstring mcrypt pdo pdo_mysql \
    && pecl install xdebug \
    && docker-php-ext-enable xdebug
 ---> Running in 3ab392bcb4c8
Get:1 http://security.debian.org stretch/updates InRelease [62.9 kB]
Get:3 http://security.debian.org stretch/updates/main amd64 Packages [189 kB]
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [88.5 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2373 B]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [9497 kB]
Fetched 9958 kB in 4s (2019 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package libpng12-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libpng12-dev' has no installation candidate
ERROR: Service 'php_fpm' failed to build: The command '/bin/sh -c apt-get update     && apt-get install -y         libfreetype6-dev         libjpeg62-turbo-dev         libmcrypt-dev         libmemcached-dev         libpng12-dev         sendmail     && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/     && docker-php-ext-install gd mbstring mcrypt pdo pdo_mysql     && pecl install xdebug     && docker-php-ext-enable xdebug' returned a non-zero code: 100
@tianon
Copy link
Member

tianon commented Aug 29, 2017 via email

@DaazKu
Copy link
Author

DaazKu commented Aug 29, 2017

That's possible but it worked for 7.0 and 7.1 and the doc from https://hub.docker.com/_/php/ needs to be updated if that is the case:

screen shot 2017-08-29 at 12 28 02 pm

@tianon
Copy link
Member

tianon commented Aug 29, 2017 via email

@ehuggett
Copy link

libpng-dev appears to be a virtual package in debian jessie, which results in libpng12-dev being installed.

It seems the documentation can be changed to state libpng-dev as the dependency / package to install (and this will work for Jessie and Stretch)?

@tianon
Copy link
Member

tianon commented Oct 4, 2017 via email

@tianon
Copy link
Member

tianon commented Oct 12, 2017

See also #504, which is a discussion regarding the base images of each PHP version.

@tianon
Copy link
Member

tianon commented Oct 12, 2017

Verified that the swap to libpng-dev works and applied to the documentation in docker-library/docs@b48ce3c. Thanks for the suggestion, @ehuggett!

skyred added a commit to INsReady/php-fpm-for-cms that referenced this issue Dec 1, 2017
angelo-v added a commit to angelo-v/docker-piwik that referenced this issue Dec 1, 2017
amrav added a commit to metakgp/metakgp-wiki that referenced this issue Dec 18, 2017
davidk132 added a commit to davidk132/processwire-docker-compose that referenced this issue Jun 15, 2018
The libpng12-dev no longer has installation candidate. The correct package should be libpng-dev, per PHP docs.
docker-library/php#662
docker-library/php#485
@alexsabau86
Copy link

Hello, having the same issue, if I try libpng12-dev I get : E: Package 'libpng12-dev' has no installation candidate

If I try libpng-dev I get: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/gd.so' - libpng16.so.16: cannot open shared object file: No such file or directory in Unknown on line 0

Any ideas? Thanks!

@yosifkit
Copy link
Member

yosifkit commented Jul 6, 2018

@alexsabau86 did you apt-get purge --auto-remove libpng-dev after using docker-php-ext-install? Unless you specifically also installed libpng16-16 it would be removed in the purge and thus the .so would be missing.

fureigh added a commit to 18F/nsf that referenced this issue Jan 16, 2019
Otherwise, the PHP build fails. For further
context, see docker-library/php#485.
capuleto added a commit to eksponent/dockerfiles that referenced this issue Jan 16, 2019
capuleto added a commit to eksponent/dockerfiles that referenced this issue Jan 16, 2019
rccerezuela added a commit to rccerezuela/thirtybees-docker-compose that referenced this issue Feb 2, 2019
VertigoRay added a commit to UNT-CAS/Wallpaper-Server that referenced this issue Apr 5, 2019
fureigh added a commit to 18F/osc-website-pa that referenced this issue May 24, 2019
Otherwise, the PHP build fails. For further
context, see docker-library/php#485.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants