PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/imagick.so' - libWand.so.9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| imagemagick (Ubuntu) |
Undecided
|
Ubuntu Server | ||
| Hardy |
Undecided
|
Unassigned | ||
| php-imagick (Debian) |
Fix Released
|
Unknown
|
||
| php-imagick (Ubuntu) |
High
|
Ubuntu Server | ||
| Hardy |
High
|
Unassigned |
Bug Description
Binary package hint: php5-imagick
Requires: libmagick9
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
Sourse package: php5-imagick
Version: 2.0.1-1
I see this warning every time I run PHP CLI script.
Related branches
noah (noah1-deactivatedaccount) wrote : | #1 |
Changed in php-imagick: | |
status: | New → Confirmed |
Changed in php-imagick: | |
assignee: | nobody → ozanichkovsky |
status: | Confirmed → In Progress |
description: | updated |
This is debdiff with libmagick9 package added to dependencies.
Changed in php-imagick: | |
assignee: | ozanichkovsky → nobody |
status: | In Progress → Fix Committed |
Fixed version of php5-imagick can be installed from my PPA: https:/
noah (noah1-deactivatedaccount) wrote : | #5 |
I would like to add that the Imagick extension to PHP doesn't work because of this.
Here's a demoscript to illustrate just this.
<?php
for($i = 1; $i < $argc; $i++) {
$f = $argv[$i];
try {
}
else
die("Fuck: writeImage() -> FALSE\n");
}
catch (Exception $e) {
}
}
?>
$ php knark.php source/*.jpg
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/
Fatal error: Class 'Imagick' not found in knark.php on line 7
As libWand.so.9 aka libmagick9 is not available from the repositories anymore, Hardy is perfectly useless for some (most?) web hosting companies. Please rebuild php5-imagick to use libWand.so.10 aka libmagick10.
Changed in php-imagick: | |
assignee: | nobody → ubuntu-server |
Adagio (fcedillo) wrote : | #7 |
Hello,
Once we have added deb http://
php5-imagick
ImageMagick modeule for php5 (Size: 82KB)
But this description is inside a gray frame (checkbox is disabled) and classified in category "Other Updates". In that way i can't use the debdiff with libmagick9 package added to dependencies.
Best Regards.
Eric Kerby (erickerby) wrote : | #8 |
I'd like to add another vote for php5-imagick to be rebuild for libmagick10. Adding a dependency for libmagick9 is not going to help when libmagick9 is not in the hardy repos!
Thanks.
Steven Wagner (stevenwagner) wrote : | #9 |
work around here:
http://
ligaard (kasperligaard) wrote : | #10 |
I am seeing this too: Hoping for it to be resolved soon via 'apt-get upgrade' :-)
Daniel James (daniel-netbreeze) wrote : | #11 |
Me too...
A work around is to install the Gutsy libjasper and libmagic9:
http://
From there I installed libjasper-
http://
From there I installed libmagick9_
Mike O'Connell (wundbread) wrote : | #12 |
As a temporary fix you can simply symlink to libWand.so.10 and libMagick.so.10, nothing dramatic changed between imagemagick 9 and 10.
sudo ln -s libWand.so.10 libWand.so.9
sudo ln -s libMagick.so.10 libMagick.so.9
komuta (komuta) wrote : | #13 |
The bug status says "Fix Committed". Is there a patch working with libmagick10 coming in the repositories ?
Changed in php-imagick: | |
status: | Fix Committed → Confirmed |
Faris Chebib (octaflop) wrote : | #14 |
I think I have a more robust fix. I found it on the forums:
http://
Changed in imagemagick: | |
assignee: | nobody → ubuntu-server |
Steven Wagner (stevenwagner) wrote : | #15 |
I really hope this gets fixed soon, because even though I have php5-imagick working with that .deb file listed above, my apt is broken. see below:
steven@monster:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
php5-imagick: Depends: libmagick9 but it is not installable
E: Unmet dependencies. Try using -f.
a simpler solution is to create two symbolic links
ln -s /usr/lib/
ln -s /usr/lib/
then:
sudo apache2ctl restart
Works for me :)
Steven Wagner (stevenwagner) wrote : | #17 |
Yah, creating the symbolic links works perfect. Thanks a lot! This has been bugging me for months with a broken apt-get package db.
gondim (gondim) wrote : | #18 |
This bug has a certain age. It has been forgotten or have any corrections soon?
Certainly the symbolic links work, but we expect a package of correction. :)
enyc (enyc) wrote : | #19 |
Even from a fresh-install 8.04.1 amd64 server ubuntu, this is still happening
causing trouble for php5-cli in my case!
sudo ln -s libMagick.so.10 /usr/lib/
sudo ln -s libWand.so.10 /usr/lib/
-- does workaround the issue ok.
--But I certainly agree this really needs rebuild of php5-imagick
package (in hardy-updates) so that the correct library version is compiled
against!
Would this cause trouble for anything that links to
/usr/
Nelson A. de Oliveira (naoliv) wrote : | #20 |
php-imagick needs to be rebuilt, not a problem with imagemagick.
Changed in imagemagick: | |
status: | New → Invalid |
Changed in php-imagick: | |
status: | Unknown → Fix Released |
gondim (gondim) wrote : | #21 |
This is an ugly error and simple to resolve. I do not know because nobody has rebuild the package. : (
enyc (enyc) wrote : Re: [Bug 203023] Re: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/imagick.so' - libWand.so.9 | #22 |
> This is an ugly error and simple to resolve. I do not know because
> nobody has rebuild the package. : (
I have previously created -proposed packages but these were for universe
rather than main ... Im not sure where to start to do that.. Maybe
somebody can point me at the right procedure for creating a proposed
package for hardy-updates to fix this?
--enyc
Changed in php-imagick: | |
importance: | Undecided → High |
Ante Karamatić (ivoks) wrote : | #23 |
This patch solves the issue in the same manner as Debian did.
Changed in php-imagick: | |
importance: | Undecided → High |
status: | New → Confirmed |
Ante Karamatić (ivoks) wrote : | #24 |
Patch was tested and resulting binaries work as they should. No regressions.
Changed in imagemagick: | |
status: | New → Invalid |
Luca Falavigna (dktrkranz) wrote : | #25 |
ACK from motu-sru.
Martin Pitt (pitti) wrote : | #26 |
Ante, please reupload with fixed changelog: "Closes: LP#203023" -> "LP: #203023". (Otherwise the tracking scripts don't recognize it and it is lost)
Ante Karamatić (ivoks) wrote : | #27 |
Done. I noticed that my self, right after I uploaded it. Sorry.
Martin Pitt (pitti) wrote : | #28 |
Accepted into -proposed, please test and give feedback here. Please see https:/
Changed in php-imagick: | |
status: | Confirmed → Fix Committed |
gondim (gondim) wrote : | #29 |
Tested! Packet php5-imagick version 2.0.1-1ubuntu0.1 from proposed repository work perfectly. :)
Good work!! :D
zeugmatis (mark-symonds) wrote : | #30 |
Just to confirm: 8.04, a stable release (supposedly), was released with this bug and nothing was done for three months.
Is this correct?
gondim (gondim) wrote : | #31 |
Zeugmatis, yes. This bug was released with Hardy stable version (8.04 LTS).
Luca Falavigna (dktrkranz) wrote : | #32 |
Fixed in Intrepid.
Changed in php-imagick: | |
status: | Confirmed → Fix Released |
Luca Falavigna (dktrkranz) wrote : | #33 |
Version in hardy-proposed works correctly.
LimCore (limcore) wrote : | #34 |
Intrepid version seems to work fine for me as well.
Martin Pitt (pitti) wrote : | #35 |
Copied to hardy-updates.
Changed in php-imagick: | |
status: | Fix Committed → Fix Released |
wr19026 (wridderikhoff) wrote : | #36 |
Looks like the latest updates to the php5 packages broke it again. The symlink solution doesn't work and I have the latest version of the package installed.
> Looks like the latest updates to the php5 packages broke it again. The
> symlink solution doesn't work and I have the latest version of the
> package installed.
What release / architechure are you using?
(cat /etc/lsb-
What version of php5-imagick has just got installed?
(dpkg -l php5-imagick)
What error do you now get exactly?
I have been quite successful in installing php5-imagick on ubuntu
Jaunty9.04 i386, without trouble.... (just tried that)...
--Simon
wr19026 (wridderikhoff) wrote : | #38 |
Thanks for your quick response, here are the 3 pieces of information you requested.
Thanks in advance for your feedback.
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
Linux 123.example.com 2.6.24-23-generic #1 SMP Wed Apr 1 21:47:28 UTC 2009 i686 GNU/Linux
Desired=
| Status=
|/ Err?=(none)
||/ Naam Versie Omschrijving
+++-===
ii php5-imagick 2.0.1-1 ImageMagick module for php5
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/
3+lfs/imagick.so' - libWand.so.9: cannot open shared object file: No such file o
r directory in Unknown on line 0
> Thanks for your quick response, here are the 3 pieces of information you
> requested.
> DISTRIB_
> ||/ Naam Versie Omschrijving
> +++-===
> ii php5-imagick 2.0.1-1 ImageMagick module for php5
> PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/
> 3+lfs/imagick.so' - libWand.so.9: cannot open shared object file: No such file o
It would seem you have the 'hardy' version of the php5-imagick package,
2.0.1-1 which has the bug. (It was linked with libWand.so.9 version).
The 'hardy-updates' version of php5-imagick (** 2.0.1-1ubuntu0.1 **)
depends upon 'libmagick10' and does not appear to have this problem.
I.e. it would appear you have the old un-fixed version of the package!!
See:-
http://
If you look in your /etc/apt/
hardy-updates...
My Hardy8.04 machine has this in /etc/apt/
-------
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
-------
Good luck!
--Simon
Colin Dean (colindean) wrote : | #40 |
I hit this bug today. I have 2.0.1-1 of php5-imagick installed despite having hardy-updates in my sources.list. Linking /usr/lib/
I'm seeing this too.
Currently running Ubuntu Hardy, dist-upgrade'd from Gutsy.
# dpkg -l|grep php
ii libapache2-mod-php5 5.2.4-2ubuntu5 server-side, HTML-embedded scripting languag
ii libphp-jpgraph 1.5.2-11ubuntu3 Object oriented graph library for php5
ii libphp-pclzip 2.6-1 zip archive manager class for PHP
ii php-pear 5.2.4-2ubuntu5 PEAR - PHP Extension and Application Reposit
ii php5 5.2.4-2ubuntu5 server-side, HTML-embedded scripting languag
ii php5-cli 5.2.4-2ubuntu5 command-line interpreter for the php5 script
ii php5-common 5.2.4-2ubuntu5 Common files for packages built from the php
ii php5-curl 5.2.4-2ubuntu5 CURL module for php5
ii php5-dev 5.2.4-2ubuntu5 Files for PHP5 module development
ii php5-gd 5.2.4-2ubuntu5 GD module for php5
ii php5-imagick 2.0.1-1 ImageMagick module for php5
ii php5-memcache 2.2.0-1 memcache extension module for PHP5
ii php5-mhash 5.2.4-2ubuntu5 MHASH module for php5
ii php5-mysql 5.2.4-2ubuntu5 MySQL module for php5