You are not logged in.
(This appears to be the most suited subforum for the following matter. Please excuse and correct me if I am wrong.)
As there is no AUR package for the CPAN module Image::Magick, which I need, I am trying to install it with cpanplus and cpanplus-dist-arch (and yes, I ran setupdistarch). Unsuccessfully, though:
$ sudo cpanp i Image::Magick
Installing Image::Magick (6.72)
Running [/usr/bin/perl /usr/bin/core_perl/cpanp-run-perl /root/.cpanplus/5.14.2/build/PerlMagick-6.72/Makefile.PL INSTALLDIRS=site]...
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
[MSG] Module 'Image::Magick' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
[ERROR] Use of uninitialized value $pkgver in substitution (s///) at /usr/share/perl5/vendor_perl/CPANPLUS/Dist/Arch.pm line 1591.
So cpanp complains about ExtUtils::MakeMaker not being installed, which is wrong:
$ pacman -Qs makemaker
local/perl 5.14.2-2 (base)
A highly capable, feature-rich programming language
local/perl-extutils-makemaker 6.59-1
Create a module Makefile
Re-installing ExtUtils-MakeMaker with cpanp does not help. Any ideas what could be wrong and how to fix it? (Also I am open to suggestions for other means of installing CPAN modules.)
EDIT:
Just retried with latest git version of cpanplus-dist-arch. No change.
Last edited by Franek (2011-10-23 21:16:06)
Offline
Long story short is that Image::Magick is bundled with ImageMagick! Install the imagemagick package and you should be just fine. The PerlMagick distribution which contains the Image::Magick module on CPAN is simply a copy of what comes with ImageMagick.
The warning about ExtUtils::MakeMaker is just something that cpanp does for every dependency of a module that you build. It is very annoying and other than convincing the CPANPLUS maintainer to remove it, there is nothing I can do about it. But it is a warning and not an error. I've just gotten used to it I suppose.
The error about an uninitialized value which stops things for you is a bug. I'll try to figure out why it happens and fix it. Thanks for reporting it. I am having a tough time reproducing it, though. Which version of pacman are you using?
Offline
Thank you, that clears things up a bit. The MakeMaker warning is indeed confusing; I will try to keep in mind that it is not of any significance. Now, as the imagemagick package is installed on my system, I just have to figure out why ikiwiki does not find it. . . but that is a different issue.
Concerning the bug: Im using pacman 3.5.4-4 . Please let me now if you need any more information.
Offline
Ok the pacman version was just a stab in the dark. I think the problem was that I extract information from pacman's output to try to guess C-library dependencies. I foolishly did not force the locale to English when running pacman behind the scenes. This is silly because the regexp is for the english text... Do you use a non-english locale to print non-english messages from pacman?
Offline
Yes, that seems to be it. I am using a german Locale, and the cpanp malfunction does not occur when I change LC_ALL to english:
$ LC_ALL="en_US" cpanp i Image::Magick
Installing Image::Magick (6.72)
Running [/usr/bin/perl /usr/bin/core_perl/cpanp-run-perl /home/carlos/.cpanplus/5.14.2/build/PerlMagick-6.72/Makefile.PL INSTALLDIRS=site]...
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
[MSG] Module 'Image::Magick' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
==> Making package: perl-perlmagick 6.72-1 (Mon Oct 24 09:24:19 CEST 2011)
.
.
.
Offline
This should be fixed in the next version of CPANPLUS::Dist::Arch (aka perl-cpanplus-dist-arch). Version 1.19 was just uploaded to the CPAN I will release a new package tomorrow. The new version should be replicated across the CPAN mirrors by then.
Thanks for reporting this and emailing me about this forum post.
Offline
It is indeed fixed at least in the git version now, however there the [community] package has not been updated yet. Thanks anyway!
Offline