Page 1 of 1

Wrong JPEG library version: library is 62, caller expects 80

Posted: 2013-03-19T00:13:45-07:00
by ROBIN
Hello There,
I have followings:
Ubuntu 12.04
XAMPP for Linux 1.8.1
PHP Version 5.4.7
imagick module version: 3.1.0RC2
ImageMagick version: ImageMagick 6.6.9-7 2012-08-17 Q16

When ran my First imagick Program I am encountered with the following error:
Fatal error: Uncaught exception 'ImagickException' with message 'Wrong JPEG library version: library is 62, caller expects 80

I've also tried to Install a stable version(3.0.1) of imagick module, But I am unable to install this version. I thought maybe 3.0.1 isn't compatible with PHP 5.4.7.
Following is the error Message while installing 3.0.1
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'struct _php_core_globals' has no member named 'safe_mode'
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/tmp/pear/temp/imagick/imagick_class.c:9534:2: error: 'CHECKUID_NO_ERRORS' undeclared (first use in this function)
make: *** [imagick_class.lo] Error 1
ERROR: `make' failed

I was doing the following for installing 3.0.1 for the Stable Release:
sudo apt-get install imagemagick libmagickwand-dev
sudo pecl install imagick

Its been three and half week I am searching on Web. But couldn't found something useful.
So can anyone help me to rid away form the Wrong JPEG library version: library is 62, caller expects 80 error
Or to install the Stable version like a charm.
Just want to install imagick on my local machine, No matter, how ?

Re: Wrong JPEG library version: library is 62, caller expect

Posted: 2013-07-15T13:02:40-07:00
by joe44850
Did anyone ever help you with this? I am having the same problem, have no idea how to fix it.

Re: Wrong JPEG library version: library is 62, caller expect

Posted: 2013-07-15T13:55:13-07:00
by fmw42
You have two apps that want different versions of libjpeg. You need to delete the old on 62 and reinstall a newer version 80 for IM.