[BlueOnyx:19112] Re: imagick error after update

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Mon Feb 8 14:54:18 -05 2016


Resurrecting an oldie but goodie:

On 8/29/2015 11:50 AM, Michael Stauber wrote:
>> It looks like the SolarSpeed PHP is looking for libMagickWand.so.2 and
>> libMagickCore.so.2 but the server now has libMagickWand.so.5 and
>> libMagickCore.so.5
>
> This is pretty sad. Looks like RedHat parted with the philosophy not to
> deprecate libraries during minor updates like from 6.6 to 6.7. At least
> as far as MagickWand is concerned.
>
> But it's a PECL module, so it's easy to fix:
>
> 1.) Check if you're affected. If the command ...
>
> /home/solarspeed/php/bin/php -m
>
> ... returns this, then you are affected:
>
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/home/solarspeed/php/lib/php/20131226/imagick.so' - libMagickWand.so.2:
> cannot open shared object file: No such file or directory in Unknown on
> line 0
>
> 2.) In that case run this command. It will uninstall the "imagick" PECL
> module:
>
> /home/solarspeed/php/bin/pecl uninstall imagick
>
> 3.) Next run this command to download, compile and reinstall the correct
> "imagick" module:
>
> /home/solarspeed/php/bin/pecl install imagick
>
> That command will ask a question (or two?). Simply press return for it
> to continue.
>
> That should fix it.

I'm getting a ton of the aforementioned errors on one box.

"/home/solarspeed/php/bin/php -m" returns:
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/home/solarspeed/php/lib/php/20100525/imagick.so' - libMagickWand.so.2: 
cannot open shared object file: No such file or directory in Unknown on 
line 0

However,  /home/solarspeed/php/bin/pecl uninstall imagick returns:
pecl/imagick not installed

If I ignore that and move on to the next step, I get this:
  /home/solarspeed/php/bin/pecl install imagick
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl 
channel-update pecl.php.net" to update
downloading imagick-3.3.0.tgz ...
Starting to download imagick-3.3.0.tgz (179,978 bytes)
.....done: 179,978 bytes
17 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
shtool at '/tmp/pear/install/imagick/build/shtool' does not exist or is 
not executable.
Make sure that the file exists and is executable and then rerun this script.

ERROR: `phpize' failed

Anybody have some ideas?

-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list