Does perl -V from the command line say that perl was build with cc? Sun ship Solaris with perl built with the Sun Workshop compiler, and Solaris (IIRC) doesn't ship with this but (again IIRC) does come with gcc out of the box. Ideally you want to be compiling modules with the same compiler which was used to build perl.

On top of this my general advice is not to use the system perl, but download the source and 'roll your own'. Reason being that your OS uses this perl for systemy type things. Other apps (for example Oracle and BMC patrol) ship with their own perl as part of the distribution. This will ensure you don't run in to any OS/perl related issues and allow you to compile your own verson of perl compiled with your compiler of choice. You could install to somewhere like /opt/appname/perl.

Perhaps it's time to talk to your sysadmin, I'm sure they'd be in favour of you not messing with the perl their OS uses, though they may simply download a build from sunfreeware or similar.


In reply to Re: CPAN Module Installation by marto
in thread CPAN Module Installation by ajeet@perl

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.