google / guetzli

Perceptual JPEG encoder
Apache License 2.0
12.9k stars 977 forks source link

error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory #252

Open liuzl1990 opened 6 years ago

liuzl1990 commented 6 years ago

[root@localhost Release]# ./guetzli --verbose --quality 100 /home/poweredge1/guetzli/test/input.jpg /home/poweredge1/guetzli/test/output.jpg ./guetzli: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory

kornelski commented 6 years ago

This means the guetzli executable was compiled on a machine with Libpng 1.6 installed, but is run on another machine that doesn't have the same Libpng 1.6 installed.

You either need to install Libpng 1.6 on the machine where you run it, or compile the executable again, but with libpng linked statically.

This is not specific to guetzli, so you can look for tutorials about using libpng in general.