in reply to Error while using GD::Simple

Something is seriously screwed up here and I can reproduce the problem.

On most of my ActivePerls Group.pm is in perl/lib/GD, but it's not there in build 1004 (5.10.0). I don't know whether it was *never* there, or whether 'ppm install GD::Simple' removed it.

Which build of ActivePerl do you have ? Simply reinstalling it might fix the problem (but only if GD::Group.pm ships with that distro.) Otherwise, let us know, and we'll devise another way of getting it fixed.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Error while using GD::Simple
by psurendran (Initiate) on Jun 16, 2009 at 01:26 UTC

    Dear Rob,

    As on a suggestion from one user I tried installing Strawberry perl v5.10.0.

    using the command

    ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/GD.ppd

    Again, I ran the same script using GD::Simple

    and I can see the same error which says,
    Can't locate GD/Group.pm in @INC <@INC contains: C:/strawberry/perl/lib C:/strawberry/perl/site/lib .>
    at C:/strawberry/perl/site/lib/GD/Sample.pm line 158.

    Please write to me if you need anymore information to comment on this issue. Thanks and Regards, Praveen.
      Please write to me if you need anymore information

      No, that about covers it. Neither the GD ppm at uwinnipeg nor the one at bribes, include GD::Group.pm. I don't know why that happens - it's clearly needed for GD::Simple to be functional. GD, itself seems to be usable, but not GD::Simple ... can you use GD instead ?

      I can't see why GD/Group is not being included in the GD ppm packages. Anyone ?

      Cheers,
      Rob

      UPDATE: As an interim measure, simply grabbing a copy of Group.pm from the CPAN source distro, and placing it next to Simple.pm in your perl installation might work - if you really do need to use GD::Simple
        Thanks for pointing this out. The problem is that the Makefile.PL of the GD distribution specifies a PM attribute to WriteMakefile of what pm files to include, and this doesn't have Group.pm. It'd be a problem on any system, I would imagine. I've fixed this for the ppm packages in both the 5.10 and 5.8 uwinnipeg repositories.