in reply to Re: Error while using GD::Simple
in thread Error while using GD::Simple

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.

Replies are listed 'Best First'.
Re^3: Error while using GD::Simple
by syphilis (Archbishop) on Jun 16, 2009 at 01:48 UTC
    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.
        I had the same problem on Linux. I fixed it by adding
        'GD/Group.pm' => '$(INST_LIBDIR)/GD/Group.pm',
        on line 237 of the Makefile.PL and ran a manual install. It works now.