tjko / jpegoptim

jpegoptim - utility to optimize/compress JPEG files
http://www.iki.fi/tjko/projects.html
GNU General Public License v3.0
1.56k stars 116 forks source link

jpegoptim: error while loading shared libraries: libjpeg.so.9: cannot open shared object file: No such file or directory #65

Closed mattyl closed 5 years ago

mattyl commented 5 years ago

I am getting these errors I installed libjpeg 9-c

I can see libjpeg.so.62 in the sbin

i have a plesk setup in centos when i went to install jpegoptim it complained about no libjpeg - so i downloaded and installed it this allowed jpegoptim to install

ANy idea what i did wrong?

mattyl commented 5 years ago

for those that come afterwards.... as i had to install libjpeg it went into usr/local/lib and seems my plesk system doesnt check usr/local/lib so i needed to edit /etc/ld.so.conf with /usr/local/lib then run /sbin/ldconfig -v (to rebuild cache) et voila error goes away (i dont know why it couldn't use libjpeg.so.62 which was already installed and as such avoid installing libjpeg.so.9 but thats for others cleverer than me.