-
Notifications
You must be signed in to change notification settings - Fork 456
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
Missing libraries for gd/zip extensions #416
Missing libraries for gd/zip extensions #416
Comments
That's weird, let's wait for an upstream fix then ? I had it today too
|
tldr;In short: debian 12 usr merge caused the issue and debian knew about this problem for at least since 2017 .. and did not fix it yet. Adding this line | awk '{print $1} {system("realpath " $1)}' \ after Line 31 in 9a7991c
Solves the problem ExplanationI just tried building the phpmyadmin image locally and I saw this in the build output:
So problem is not that the packages don't get installed .. instead they get removed again.
dpkg-query does not find the packages belonging to the libraries that the extensions depend on .. so these package are removed again 😞 The underlying problem seems to be that in debian 12 the
So it prefers But even if we would fix this issue (either by removing the line
For these the issue is that the package uses
It seems debian knew about this issue for a very long time, but it is not fixed 😞 So I think the only viable option is to check both the path reported by ldd and the realpath of that.
After this one: Line 31 in 9a7991c
This seems to fix the problem:
|
I can commit this myself, but if you want to open a pull-request that could be cool |
✅ I will create a PR for this and I also reported it upstream |
…tensions to be uninstalled
…tensions to be uninstalled
…tensions to be uninstalled
This applies the fixes suggested in docker-library/official-images#14960
Thank you for all the work, it is now deployed to the hub: https://hub.docker.com/_/phpmyadmin/tags |
* LNP-843: 🐳 update PHP in docker image to 8.1.29 🐘. * LNP-843: ꩜ update the version of Debian used for the Content Hub PHP Docker image. * LNP-833: 🐛 fix for not finding php extensions when trying to run composer - see phpmyadmin/docker#416 (comment).
Today I was experimenting with the phpmyadmin docker containers and came across a couple of error message from the container startup:
It seems the container is missing the libraries for the zip/gd extensions (libzip.so.4, libpng16.so.16, libwebp.so.7, libjpeg.so.62, libXpm.so.4 libfreetype.so.6):
Where it gets weirder is when I double checked which version I was running. Turns out the latest image pulled fromdocker.io/library/phpmyadmin:latest
has a different digest that the one reference in the docker hub interface 🤔Nevermind .. see docker/hub-feedback#1925 😞
So according to the Dockerfile these libraries should have been installed
docker/apache/Dockerfile
Lines 9 to 16 in 9a7991c
^ But they are not installed inside the container 🤔
The text was updated successfully, but these errors were encountered: