Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??

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 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/ line 38.
BEGIN failed--compilation aborted at /root/.cpan/build/GDGraph-1.43/blib/lib/GD/ 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

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.