-
Notifications
You must be signed in to change notification settings - Fork 131
Ubuntu 17.04 libpng12.so.0: cannot open shared object file #95
Comments
Anyone knows a work around? |
As you can see, it's a problem with the dependency (mozjepg) and there is no current fix fo this. imagemin/mozjpeg-bin#18. At mozjepg you can find a possible workaround: mozilla/mozjpeg#255 Closing because this project can't fix this. |
Ah ok, using this as a workaround: wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb \
&& dpkg -i /tmp/libpng12.deb \
&& rm /tmp/libpng12.deb |
Another workaround :)
|
what if libpng-dev:amd64 is already installed (debian 9) and still |
Same problem on Debian 9. |
i recommended
|
Sorry my English... I just installed [email protected] package and delete old [email protected] from image-webpack-loader node_modules. And it works! |
Downgrading |
I got passed this on CentOS 7 through a combination of a lot of cursing and |
None of the above fixes worked for me. This one-liner solved it:
This installed libpng12 and doesn't require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed. |
@slamorte Nice one. This fix works great. Thank you |
Thanks @slamorte. Your fix worked for me. Cheers !! |
Does this solution work for anyone in
|
"echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0" |
work to me on debian 9.4 |
Worked for me on Ubuntu 18.04.1 LTS which is Hyper-V Win 10 Quick create one. |
Ended up here from Arch ( Manjaro ). This fixed it. |
Thank you Erwin, it solved mine |
Thank you as well. Worked for me on Ubuntu 18.04 |
Recently my deploy process starting throwing errors regarding keys. This new three-line bash fixes that issue: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0 |
If anyone has a better fix, perhaps using a new version of mozjepg, I'd be happier to replace this hacky fix. |
I tried this one and it worked . Thanks~~~ |
Getting this error now with node:8 Docker image in a multistage build... |
i try this one and it's working for me in my ubuntu 18.04, thank you. |
finally this help me in kali linux 2020 This new three-line bash fixes that issue: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 |
I got this error: |
None of the above fix worked for me, I am using parrot 5.4 |
its really awesome>>> Worked for me |
unfortunately it fails on ARM (M1)
|
It looks like mozjpeg-bin was updated to use libpng 16 from 7.1.0. I guess pinning mozjpg dependency to "^7.1.0" would solve it. |
Given this ticket somewhat relates to #76 I decided to re-create becuase we're now at version 17.04 with still no fix?
Error message:
Module build failed: Error: /home/myApp/node_modules/mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
From what I can see I'd need to contact you guys?
OS: Ubuntu 17.04
Version:: mozjpeg v4.1.1
Package:
sudo apt-get install libpng-dev
ran with no errors:The text was updated successfully, but these errors were encountered: