Php – gd-jpeg: JPEG library reports unrecoverable error: Wrong JPEG library version: library is 80, caller expects 62

apache-2.2gdPHP

As the title says, I'm getting the above error in my Apache log files when calling

imagecreatefromjpeg()

in PHP.

Running:

apt-get install libjpeg62-dev

Tells me that it is already at the latest version.

libjpeg.so.62

Also exists in /usr/lib

(Running Ubuntu)

Best Answer

Make sure that /usr/lib/libjpeg.so.62 actually is the file you think it is (ie not been overwritten by something/someone) Something like: for f in find . -type f -name "*jpeg*" ; do md5sum $f | uniq ; done would be a good start (you seem to have another version of libjpeg, thus the error)