I understand your dispair. When I was a neophyte monk, I ran into many problems compiling modules. Occasionally, I still do. I can only offer some ideas -- unfortunately there isn't a magic bullet because modules are free, and therefore are not necessarally widely supported.

idea 1) Get gcc as your compiler. This solved 95% of my problems. After you get it, and get it working, then:

2) Compile perl with gcc. Some modules (DBI for example), prefer to be compiled with the compiler that compiled perl.

3) As noted in other replies, use perl -MCPAN and/or cpan plus. Otherwise, you will go crazy.

4) Use a newer version of perl. Modules may not play nice with older versions of perl.

These things may take you a day (or more) to get working right. Once you do, 99% of the modules will work like a charm.

good luck

-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday


In reply to Re: Module compilation hell by freddo411
in thread Module compilation hell by Anonymous Monk

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.