SID-01962: ImageGalleryPlugin and GraphicsMagick-1.1.11
| Status: |
Asked |
TWiki version: |
6.0.0 |
Perl version: |
|
| Category: |
CategoryPlugins |
Server OS: |
Centos 6 VM |
Last update: |
5 years ago |
I am upgrading my current TWiki-5.0.1, to TWiki-VM-6.0. I am trying to load the
ImageGalleryPlugin and the
ImagePlugin, both require
GraphicsMagick-1.1.11. I have located the file
GraphicsMagick-1.1.11.tar.gz and tried to install it, but it does come up with errors. I tried to install and run
GraphicsMagick-1.3.13, it installs without errors, but I am not sure if I am installing it correctly. Either one doesn't seem to allow the "Find Extensions" and then choose the two plugins to install. The error that I get is...
###
ImageGalleryPlugin Installer ###
This installer must be run from the root directory of your TWiki
installation.
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
##########################################################
Checking dependency on Graphics::Magick....
* ImageGalleryPlugin depends on cpan package Graphics::Magick >=1.1.11
which is described as "Required."
But when I tried to find it I got this error:
Can't locate Graphics/Magick.pm
This module is available from the CPAN archive (
http://www.cpan.org
). You
can download and install it from here. The module will be installed
to wherever you configured CPAN to install to.
CPAN: Time::HiRes loaded ok (v1.9726)
Error: Installer returned errors:
mkdir /root/.cpan: Permission denied at /usr/local/share/perl5/CPAN/FTP.pm line 520
at /usr/share/perl5/File/Path.pm line 156
File::Path::_mkpath('HASH(0x3a82968)', 'ARRAY(0x3f0c0b0)') called at /usr/share/perl5/File/Path.pm line 133
File::Path::_mkpath('HASH(0x3a82968)', 'ARRAY(0x3a82950)') called at /usr/share/perl5/File/Path.pm line 133
File::Path::_mkpath('HASH(0x3a82968)', 'ARRAY(0x3e78450)') called at /usr/share/perl5/File/Path.pm line 114
File::Path::mkpath('/root/.cpan/sources/authors') called at /usr/local/share/perl5/CPAN/FTP.pm line 520
CPAN::FTP::mymkpath('CPAN::FTP', '/root/.cpan/sources/authors') called at /usr/local/share/perl5/CPAN/FTP.pm line 415
CPAN::FTP::localize('CPAN::FTP', 'authors/01mailrc.txt.gz', '/root/.cpan/sources/authors/01mailrc.txt.gz', 3) called at /usr/local/share/perl5/CPAN/Index.pm line 226
CPAN::Index::reload_x('CPAN::Index', 'authors/01mailrc.txt.gz', 'authors/01mailrc.txt.gz', undef) called at /usr/local/share/perl5/CPAN/Index.pm line 84
CPAN::Index::reload('CPAN::Index') called at /usr/local/share/perl5/CPAN.pm line 976
CPAN::exists('CPAN=HASH(0x3ebbc48)', 'CPAN::Module', 'Graphics::Magick') called at /usr/local/share/perl5/CPAN/Shell.pm line 1571
CPAN::Shell::expand_by_method('CPAN::Shell', 'CPAN::Module', 'ARRAY(0x3e78138)', 'Graphics::Magick') called at /usr/local/share/perl5/CPAN/Shell.pm line 1488
CPAN::Shell::expand('CPAN::Shell', 'Module', 'Graphics::Magick') called at tools/extender.pl line 260
TWiki::Extender::satisfy('HASH(0x1e9c050)') called at tools/extender.pl line 923
TWiki::Extender::_install('ARRAY(0x3eb5e60)', 'ImageGalleryPlugin') called at tools/extender.pl line 1056
TWiki::Extender::install('http://twiki.org/p/pub/Plugins', 'ImageGalleryPlugin', 'ImageGalleryPlugin', 'MANIFEST', 'data/TWiki/ImageGalleryPlugin.txt,0644,\x{a}lib/TWiki/Plugins/Ima...', 'DEPENDENCIES', 'Graphics::Magick,>=1.1.11,1,cpan,Required.\x{a}Image::Magick,>=6....') called at /var/www/twiki/ImageGalleryPlugin_installer line 104
require /var/www/twiki/ImageGalleryPlugin_installer called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 177
eval {...} called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 175
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x1580220)') called at /var/www/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /var/www/twiki/bin/configure line 478
at /usr/share/perl5/CGI/Carp.pm line 379
CGI::Carp::realdie('mkdir /root/.cpan: Permission denied at /usr/local/share/perl...') called at /usr/share/perl5/CGI/Carp.pm line 468
CGI::Carp::die('mkdir /root/.cpan: Permission denied at /usr/local/share/perl...') called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 179
eval {...} called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 175
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x1580220)') called at /var/www/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /var/www/twiki/bin/configure line 478
You may be able to resolve these errors and complete the installation from the command line, so I will leave the installed files where they are.
Installation finished.
Is there another way to install this or get around this? I really need to move forward on this project. This is the last plugins that I need to install and then I can move things over from the other site. Any help would be much appreciated! Thank you!
Sincerely,
Lisa Letellier
--
Lisa Letellier - 2014-08-08
Discussion and Answer
Try to install Graphics::Magick separately as root, see
HowToInstallCpanModules.
Or you could try a native install on CentOS as documented at
http://www.graphicsmagick.org/INSTALL-unix.html
--
Peter Thoeny - 2014-08-08
I have been trying that, not sure if I am doing something wrong or not. I install it and then run the "Find Extensions" and then choose the two plugins to install. Both plugins stat that they are looking for Graphics::Magick 1.1.11. Does it have to be that version?
--
Lisa Letellier - 2014-08-11
I have the same exact issue with the plugin
ImageGalleryPlugin on TWiki 6.0 with
CentOS 6.4
Will it be solved some day or do we must consider this plugin as outdated ?
--
Etienne Pallier - 2014-10-15
For more details about my comment above, here is what I did :
I install the
GraphicsMagick lib with yum :
yum install
GraphicsMagick.x86_64
yum install
GraphicsMagick-perl.x86_64
(also, just in case, yum install
ImageMagick-perl.x86_64)
all this installed ok... but
...the plugin still does not want to install from do/configure and section extensions...
(same errors as
LisaLettelier above)
--
Etienne Pallier - 2014-10-15
You need to install all dependencies
before installing the plugin.
You need to install
CPAN:Image::Magick
CPAN library as root. And before that, you need to install the Image::Magick system library as root.
--
Peter Thoeny - 2014-10-16
failed to install
CPAN:Image::Magick
(on
CentOS 6.4) :
# perl -MCPAN -e shell
cpan> install Image::Magick
RESULT :
<pre>
Magick.xs: In function ‘boot_Image__Magick’:
Magick.xs:2393: attention : implicit declaration of function ‘MagickCoreGenesis’
Magick.xs:2393: erreur: ‘MagickFalse’ undeclared (first use in this function)
Magick.xs:2394: attention : implicit declaration of function ‘SetWarningHandler’
Magick.xs:2395: attention : implicit declaration of function ‘SetErrorHandler’
Magick.xs:2396: erreur: ‘magick_registry’ undeclared (first use in this function)
Magick.xs:2396: attention : implicit declaration of function ‘NewSplayTree’
Magick.xs:2397: attention : déclaration sans effet
make:
* [Magick.o] Erreur 1
JCRISTY/PerlMagick-6.89-1.tar.gz
/usr/bin/make -- NOT OK
Failed during this command:
JCRISTY/PerlMagick-6.89-1.tar.gz : make NO
</pre>
--
Etienne Pallier - 2014-10-17
Install the system library before you can install the CPAN library. See
http://www.imagemagick.org/script/binary-releases.php
--
Peter Thoeny - 2014-10-17
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
Hi all, I have tried installing this plug-in but the dependencies fail because Graphics Magick is not available as a CPAN. I did run through the
https://imagemagick.org/index.php
install instead, but the plugin installer still throws errors and when enabled and tested on a page the error I see is:
<verbatim>
Error: Exception 420: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/562
</verbatim>
I feel like I must be missing a config somewhere to tell the plugin to use imagemagick as opposed to Graphics Magick. This may be the wrong assumption. Any ideas to help get this running would be appreciated. The plugin is great for photo sharing on an internal Intranet.
Thank you.
--
John Mundy - 2020-09-22
BTW, I can see the core.pm file has the following code:
# Graphics::Magick is less buggy than Image::Magick
my $impl =
$TWiki::cfg{ImageGalleryPlugin}{Impl} ||
$TWiki::cfg{ImagePlugin}{Impl} || 'Image::Magick';
So I presume the plugin is already setup to use Image::Magick ?
--
John Mundy - 2020-09-22
I am not familiar with this plugin. Please report here for others if you find a workable solutions.
--
Peter Thoeny - 2020-09-23
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.