Boss Happy has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I'm trying to get the Tk::JPEG module from CPAN to install on my Ubuntu Breezy Badger (5.10) machine. I have perl5.8.7 installed.

I've been attempting to install it via perl -MCPAN -e 'install Tk::JPEG' Which displays a LOT of information on the screen but ends up with:

Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/JP.t 0 11 294 582 197.96% 4-294 t/zzScrolled.t 94 2 2.13% 66 94 (3 subtests UNEXPECTEDLY SUCCEEDED), 23 subtests skipped. Failed 2/47 test scripts, 95.74% okay. 293/2619 subtests failed, 88.81 +% okay. make: *** [test_dynamic] Error 255 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
I tried a perl -MCPAN -e 'force install Tk::JPEG' but I got the same result.

All help, and patience is greatly appreciated.

Thanks,
Jason

Replies are listed 'Best First'.
Re: Tk::JPEG won't compile
by PodMaster (Abbot) on Jan 22, 2006 at 04:32 UTC
      Well, I got it to install, here's the tale:

      The perl -MCPAN -e 'force install Tk::JPEG' would NOT install the module. I got the same error messages with the additional line Pragma force used without method: cannot continue

      After reading your response, I was rather intimidated by installing it by hand. On a whim, I tried installing it via the shell with force install Tk::JPEG and it worked!

      I found out about CPAN about 2 days ago, so I didn't know what the hell to do or what my options were, I just tried what I saw. I didn't know about the shell option until I read your link. Thanks for all your help. It is GREATLY appreciated.

      --Jason