-
Notifications
You must be signed in to change notification settings - Fork 59
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
Installation fails on Ubuntu 16.10 amd64 #18
Comments
Hi Same problem for me. Thanks for the workaround |
Same problem on Mac OS. I'm using MacPorts and installing libpng did not help. |
This worked for me! installing http://ppa.launchpad.net/hiberis/ppa/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.27-1ubuntu1~ppa1_amd64.deb |
@jeremiahgibson91 thanks, it works |
imagemin/mozjpeg-bin#18 which is used by img-loader (webpack), which is used by laravel-mix
Same issue, Kubuntu 16.10. |
What about to implement platform-adaptive library calls? |
Potential workaround:
|
Hi @jeremiahgibson91, it works for me in Ubuntu 17.04, thanks!!! |
I'm encountering the same problem with I had to fix this by running |
I also ran into this issue. imagemin/imagemin-mozjpeg#26 pointed me to the fact that First, make sure you have all the build dependencies installed: Then just rebuild the package: |
@hackel It worked, thanks! |
The above fixes didn't work for me on my deployment process docker image. The one-line command solved it:
Basically it adds another source to apt, updates apt, and installs libpng12-0. |
This works for me, Very very thank you! |
I also had the libpng12.so.0 issue, and fixed with:
elementary OS 5.0 Juno (64-bit) This answer gave the general commands. Thanks @jeremiahgibson91 for the install link! |
It is not just ubuntu that dropped support for libpng12, but also Debian. Debian Jessie seems to be the last version that supports libpng12, and will no longer be LTS starting today (june 30th 2020). Given that debian is the de-facto base for the popular node images... yet The imagemin is widely popular in the node community. If you want to use the latest node versions via docker you can no longer use imagemin. It would be great if they could be aligned. Also it seems the macos cjpeg binary is expecting the more recent libpng version 1.6 as well, and not libpng12. So if you develop on a mac and then deploy code in linux (a common pattern) there is further confusion of what version of libpng is needed. |
Hello I have probably a proper resolution for this problem. The build image for cjpeg is an ancient debian:8-slim image (so 2 versions behind current stable) So I updated the image and after rebuild and swap binaries everything seems to work on the current Debian 10 Slim image https://github.com/imagemin/mozjpeg-bin/pull/61/files |
I'm glad that the PR was merged so fast!!! ^^ @sindresorhus @1000ch when you are going to release a new version? I would like to start using the libpng16 compatible version as soon as possible ^^ |
The newest version uses |
I fixed it by installing libpng12 but it is not true way.
The text was updated successfully, but these errors were encountered: