imagemagick dependency error in Hardy: should install libmagick9

Bug #202068 reported by Rob van der Linde
12
Affects Status Importance Assigned to Milestone
imagemagick (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I installed php5-imagemagick on Hardy development branch and ran PHP from the command line:

php

and got the following error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/imagick.so' - libWand.so.9: cannot open shared object file: No such file or directory in Unknown on line 0

I had to manually install libmagick9 from the repository, but really, when installing the imagemagick package, libmagick9 should have been automatically installed as a dependency which it didn't.

Revision history for this message
Anderson (amg1127) wrote :

Same error here.

$ php --version
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/imagick.so' - libWand.so.9: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.4-2ubuntu5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 27 2008 20:46:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Changed in imagemagick:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Rob van der Linde (robvdl) wrote :

This was fixable at first, when Hardy was still in beta, but now things are worse because the package needed, libmagick9 is no longer in the repository so the workaround doesn't work anymore, and the bug is still not resolved.

So if you need PHP and imagemagick, what do you do now?

Revision history for this message
Rob van der Linde (robvdl) wrote :

libmagick10 is in the repository but libmagick9 is not and if you try it install it, it says it has been obsoleted. Maybe imagemagick itself is an older version than libmagick in the repository.

Revision history for this message
Rob van der Linde (robvdl) wrote :

Sorry for the comment pollution, but you can still work around this issue by manually downloading the libmagick9 deb file, I found here on launchpad:

i386:

https://launchpad.net/ubuntu/hardy/i386/libmagick9/7:6.2.4.5.dfsg1-2ubuntu1

amd64:

https://launchpad.net/ubuntu/hardy/amd64/libmagick9/7:6.2.4.5.dfsg1-2ubuntu1

The status of the packages (in the left) says "deleted", so I would best grab them quick if you need them. Install with "sudo dpkg -i package.deb"

Revision history for this message
Harry Sufehmi (harry-sufehmi) wrote :

These commands made the error message to disappear :

ln -s /usr/lib/libMagick.so.10.0.9 /usr/lib/libMagick.so.9
ln -s /usr/lib/libWand.so.10.0.9 /usr/lib/libWand.so.9

Revision history for this message
James (james-ellis-gmail) wrote :

Hi

The magick wand problem has been around for quite a while when trying to get Imagick running with PHP5.

The trick was to install the package libmagick9-dev -- not sure how "compatible" that is with libmagick10 but it works, it seems to match with the symbolic link comment above. I wrote some instructions here: http://php.net/manual/en/imagick.setup.php#83715

I didn't install php5-imagick from the repos as there is a more recent version available from PECL.

HTH

Revision history for this message
chris lea (chris-lea) wrote :

I built the php5-imagick package from source on a hardy box. I have libmagick9-dev and libmagick10 installed (which seems oddly wrong, but that's how the repos appear to be right now). At any rate, building form source creates a .deb that works just fine as far as I can tell. I can attach mine. If anybody would like me to do so please just let me know here and I'll get it up.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.