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

I'm trying to install GD.pm on a Linux box (Cobalt RaQ) and get the following:
cp qd.pl blib/lib/qd.pl cp GD.pm blib/lib/GD.pm AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD) /usr/local/bin/perl -I/usr/local/lib/perl5/5.6.0/mips-linux -I/usr/loc +al/lib/per l5/5.6.0 /usr/local/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap /usr/loc +al/lib/per l5/5.6.0/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc && mv GD.xsc + GD.c cc -c -I/usr/local/include -I/usr/local/include/gd -D_LARGEFILE_SOURCE + -D_FILE_O FFSET_BITS=64 -O2 -DVERSION=\"1.27\" -DXS_VERSION=\"1.27\" -fpic - +I/usr/loca l/lib/perl5/5.6.0/mips-linux/CORE GD.c GD.xs:7: gd.h: No such file or directory make: *** [GD.o] Error 1 /usr/bin/make -- NOT OK Running make test Oops, make had returned bad status Running make install Oops, make had returned bad status
Any idea what's happening or how I can get it to build? Most of my other modules build fine, but I can't seem to get GD or Image::Magick to install at all.

Replies are listed 'Best First'.
Re: CPAN modules install problem?
by btrott (Parson) on Jun 14, 2000 at 03:24 UTC
    Did you install the GD library? GD.pm is a Perl frontend to the GD C library, which you must read about, download, and install, before installing GD.pm. It's here.

    Here are the full installation instructions for GD.pm.

    And if you tried to install Image::Magick w/o first installing ImageMagick, the same thing applies.

Re: CPAN modules install problem?
by Aighearach (Initiate) on Jun 15, 2000 at 00:02 UTC
    The key here is the CASE. As is often the case of Perl frontends to C libs, the Perl version has caps. So GD can't find gd.h, that should tell you it's not a perl problem, it's a C library problem. Another example of the CASE insanity is Gimp, with is the perl frontend to gimp.
    Paris Sinclair    |    4a75737420416e6f74686572
    pariss@efn.org    |    205065726c204861636b6572
    I wear my Geek Code on my finger.