This is now solved.
I found docs on the internet that said to re-install perl. After doing so nothing seemed to change. But I found another one that said to use ldconfig, once I did that after the re-install GD installed just fine.

I'm having some trouble installing some modules using CPAN. I'm not sure how to tack these down to figure out what to do to fix them or for that matter where to go for help.

I am wanting to run a perl program called spamstats which will parse my log file for info. The first attempt yielded an error message that indicated I didn't have a needed module. That installed ok. Then I tried the graph utility and it needed something to but I can't install what it wants without errors.

I'm stuck, I don't know what is wrong or how to fix it.

This is what I'm seeing:

Note: I'm installing GD using "install GD"

t/use.........Can't locate GD.pm in @INC (@INC contains: /root/.cpan/build/GDGraph-1.43/blib/lib /root/.cpan/build/GDGraph-1.43/blib/arch /usr/local/lib/perl5/5.8.4/i686-linux-ld /usr/local/lib/perl5/5.8.4 /usr/local/lib/perl5/site_perl/5.8.4/i686-linux-ld /usr/local/lib/perl5/site_perl/5.8.4 /usr/local/lib/perl5/site_perl .) at /root/.cpan/build/GDGraph-1.43/blib/lib/GD/Graph.pm line 38.
BEGIN failed--compilation aborted at /root/.cpan/build/GDGraph-1.43/blib/lib/GD/Graph.pm line 38.
Compilation failed in require at t/use.t line 7. BEGIN failed--compilation aborted at t/use.t line 7. t/use.........dubious
Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/axestype.t 2 512 13 26 200.00% 1-13
t/use.t 2 512 10 20 200.00% 1-10
Failed 2/5 test scripts, 60.00% okay. 23/85 subtests failed, 72.94% okay. make: *** test_dynamic Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force

Can someone give me some direction on what to do to trace this down please.


In reply to Solved - Make errors installing modules from CPAN by kwgagel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.