Skip Menu |

This queue is for tickets about the Image-Hash CPAN distribution.

Report information
The Basics
Id: 106462
Status: resolved
Priority: 0/
Queue: Image-Hash

People
Owner: Nobody in particular
Requestors: JHI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.06



Subject: jpeg dependency missing?
The below is what happens when I try to install Image::Hash (using ye olde CPAN.pm, FWIW). I see no dependency to Imager/File/JPEG declared in META.yml? ... Configuring R/RU/RUNARB/Image-Hash-0.05.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Image::Hash Writing MYMETA.yml and MYMETA.json RUNARB/Image-Hash-0.05.tar.gz /usr/local/bin/perl Makefile.PL -- OK Running make for R/RU/RUNARB/Image-Hash-0.05.tar.gz cp lib/Image/Hash.pm blib/lib/Image/Hash.pm Manifying 1 pod document RUNARB/Image-Hash-0.05.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 "/usr/local/perl-forge/v/5.22.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/001_load.t ..... ok Can't make image from this value: format 'jpeg' not supported - formats bmp, ico, png, pnm, raw, sgi, tga available for reading - Can't locate Imager/File/JPEG.pm at t/002_lengths.t line 40. # Failed test 'undef isa 'Image::Hash'' # at t/002_lengths.t line 41. # undef isn't defined Can't call method "ahash" on an undefined value at t/002_lengths.t line 44. # Looks like you planned 28 tests but ran 8. # Looks like you failed 1 test of 8 run. # Looks like your test exited with 2 just after 8. t/002_lengths.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 21/28 subtests (less 3 skipped subtests: 4 okay)
Thank you for reporting this. Image::Hash requires one of this tree image libraries to work: GD, Image::Magick or Imager. However during the install of Image::Hash it will test all of the tree image libraries if they are instead. It appears that some older version of Imager do not include support for jpeg images out of the box. I have made a new version, named 0.06, where Image::Hash only test Imager if Imager has jpeg support included. This should allow you to instal it without any errors.