Hello Monks,

I installed Oracle 10g on my Vista machine. Oracle installs a custom version of perl for its scripting needs. Note that Oracle's perl sets PERL5LIB variable.

A few days later I installed ActiveState (5.10) for my needs.

So, now when I do the following using ActiveState, I get an error:

C:\temp\ama>c:\perl\bin\perl -V Perl lib version (v5.8.3) doesn't match executable version (v5.10.1) a +t D:\oracl e\product\10.2.0\db_1\perl\5.8.3\lib/MSWin32-x86-multi-thread/Config.p +m line 32. Compilation failed in require. BEGIN failed--compilation aborted.


So, first question is why ActiveState is not able to find its own config.pm? If I unset PERL5LIB variable, the perl -V (above) works fine. I have this type of question, yet I am still mystified with the PERL5LIB variable, because libraries in PERL5LIB are still searched even when I run ActiveState perl with -I switch providing explicit path to all my libraries.

Can you please help demystify the PERL5LIB variable.

Thanks so much.

Ash

In reply to Perl versions conflict help by jujiro_eb

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.