Hi,

I've got a problem. I have Perl on Windows Server 2003. I have Oracle also on the box. The problem I have is that Oracle seems to have its own version of Perl and that the two are getting confused.

I don't want Oracle to use my install of Perl and I don't want my install of Perl using Oracle's. However my install of Perl seems to pick up the same @INC as Oracle's. When I go to use any module I'm told that the Perl lib versions don't match.

Perl and Oracle both set some system wide environmental vars, which I have had to modify from the Windows Control Panel. The first was path which I had to remove C:\Perl\bin from it otherwise Oracle would use the wrong perl. The other was PERL5LIB which I had to remove or Perl would use Oracle's perl libs.

The problem comes when I log off and back onto the box. Although PERL5LIB is no longer shown as an env var in the Control Panel, Perl (only after I log back into the box) behaves as if PERL5LIB was set to point the Oracle Perl libs.

If I set PERL5LIB to C:\Perl\site\lib, then Oracle gets really unhappy. It seems happy if it doesn't exist.

I had this all working on a Win2k server without needing to set anything in my script, so I want to avoid having to set any vars in my scripts as that would require rewriting them.

So what do I need to do to get this all working right?

Thanks in advance.


In reply to Perl picks up wrong @INC on Win2003 with Oracle by xorl

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.