This question about Configuration: Answered
ImageMagick not recognized on ImagePlugin installation (Debian 10.2)
I just reinstalled the ImagePlugin
(because I has some trouble similar to this question – https://foswiki.org/Support/Question2018
– which was somehow related to the ImagePlugin
and the error could be worked around by disabling the ImagePlugin
During installation of the ImagePlugin
, I got the following message:
* Image::Magick version >= 126.96.36.199 required -- installed version is 0 - Required
There was no warning about a missing ImageMagick installation before, so I was a bit surprised (should there be one in the configure section?)
I'm always a bit confused with the external perl dependencies but I guess (hope) this time I got it right.
On Debian there ist the "libimage-magick-perl" package, which had already been installed. I reinstalled it. Anyways Foswiki complains there is no ImageMagick on the system.
The description of the package states:
apt-cache show libimage-magick-perl
Description-en: Perl interface to the ImageMagick graphics routines
PerlMagick is an objected-oriented Perl interface to ImageMagick.
Use the module to read, manipulate, or write an image or image sequence from
within a Perl script. This makes it very suitable for Web CGI scripts.
This is the compatibility (wrapper) perlmagick package that
use the default channel depth.
This package provides the perl Image::Magick class.
Checked for the actual ImageMagick perl package ...
dpkg -l |grep libimage-magick
ii libimage-magick-perl 8:188.8.131.52+dfsg-2.1 all Perl interface to the ImageMagick graphics routines
ii libimage-magick-q16-perl 8:184.108.40.206+dfsg-2.1 amd64 Perl interface to the ImageMagick graphics routines -- Q16 version
... is installed.
- Do I have the right ImageMagick for perl package installed?
- If yes, shouldn't the ImagePlugin installer recognize it?
- If no, shouldn't there be a warning in the configure tool or on the InstalledPlugins page?
I don't really use the ImagePlugin
(not aware of it, at least), so I cannot tell if it's working correctly.
Just wanted to let you know that I stumbled upon this.
- 31 May 2020
Try the following for testing purposes:
sudo su - www-data -c 'perl -e "use Image::Magick"'
Also: have a look at FoswikiServerInformation
and see if Image::Magick is listed there.
If so, everyghing seems to be just fine. Ignore any other error that you have seen before.
- 31 May 2020
thanks for your reply, which is very helpful.
I had to change the command (I don't use sudo) to
su -s /bin/bash - www-data -c 'perl -e "use Image::Magick"'
becaus www-data has no login shell. The command exits with no output (return code 0), which seems fine.
Also ImageMagick is listed with the correct version number on the FoswikiServerInformation
So I conclude there is a bug in the ImagePlugin
installer which complains about a missing ImageMagick installation when ImageMagick is actually properly installed.
- 05 Jun 2020
I'd rather assume that the installer tests for
being defined ... which it is not. Others - such as JSON - do have proper version infos. Room for further investigation ...
- 05 Jun 2020