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

I just got the book "Perl Graphics Programming" and I need to install the GD module on my Windows XP system. From what I've read it sounds like I need a C compiler to do this, and luckily, I have Visual Studio .Net. Still, I can't figure out exactly what to do.

Can someone give me a walkthrough of how to install this module? If you could start with downloading the libraries and module... pretend I know nothing, because when it comes to C-based modules, I basically do know nothing. Your help would be greatly appreciated.

Replies are listed 'Best First'.
Re: Installing GD on Windows XP
by NetWallah (Canon) on Feb 14, 2004 at 22:12 UTC
    To install this (or any other) module, try PPM.

    From a command prompt, enter
    PPM install GD

    There are many PPM options - see "perldoc ppm" . GD 2.12 is available as a PPM install, so no need for the compiler.

    For future reference, you will need the "nmake" program in your path. If you need to compile, build and install a module, use the Visual studio command prompt, then go to the package path, and follow the README instructions for the modules, which usually say
    perl Makefile.pl
    make test {You should type "nmake test"}
    make install {You should type "nmake install"}

    "When you are faced with a dilemma, might as well make dilemmanade. "
      I just checked, and PPM doesn't have GD. Perhaps you have a different repository selected? If so, what is the url?
      EDIT: Nevermind, my distro of Activeperl was messed up- a reinstall did the trick
Re: Installing GD on Windows XP
by strat (Canon) on Feb 15, 2004 at 08:03 UTC
    Maybe Re: Problem installing GD could be interesting for you...

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Re: Installing GD on Windows XP
by Anonymous Monk on Feb 14, 2004 at 23:45 UTC
Re: Installing GD on Windows XP
by Arunbear (Prior) on Feb 15, 2004 at 21:36 UTC
    I would recommend picking up a win32 perl distribution from here. Along with apache/mod_perl, you get many tasty non-core (and XS) modules, including GD, DBI, and Template toolkit. Also comes with a cool Tk GUI frontend for PPM. :))