Dear monks,
I run a Solaris 8 machine (sparc) at work and had problems installing DBI for perl 5.6.0 - it seems that compiling modules with gcc when the system perl is precompiled with a Sun compiler is a problem. Anyway to cut a long story short I got 5.6.1 from CPAN, compiled with gcc - and installed DBI..
Now I suffer from the following style error:

BEGIN failed--compilation aborted at /usr/apache/htdocs/mrbs/badpw.pl line 8. Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5 +/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at /usr/apache/htdocs/mrbs/badpw.pl +line 8.

obviously @INC seems not to include the path to strict.pm from this error message but :

# perl -e 'use strict; print map {"$_ => $INC{$_}\n"} keys %INC' stric +t.pm => /usr/local/lib/perl5/5.6.1/strict.pm

and :

# perl -e 'print join "\n", @INC' | grep 5.6.1 /usr/local/lib/perl5/5.6.1/sun4-solaris /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris /usr/local/lib/perl5/site_perl/5.6.1

I'm just terribly confused - I've searched all over and not found a satisfactory answer, so I submit it to your wisdom.
Thanks in advance..
dan

Edit by tye to replace <pre> with <code> due to long lines


In reply to perl 5.6.0-5.6.1 upgrade problem by Bukowski

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.