To kickstart my development work on a Windows 7 box last spring, I installed Git (git v 1.7.0.2.msysgit.0). This installed the awesome GitBash mingw32 window. AFAIK, this git dist installed perl v5.8.8 into expected areas.

I am trying to get the best perl script ever working.

$ ./thebestscript.pl Can't locate XML/XPath.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8 +/msys /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys /usr/l +ib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at ./thebestscri +pt.pl line 40. BEGIN failed--compilation aborted at ./thebestscript.pl line 40.

OK, this is the same @INC problem posted earlier. ppm wasn't part of that distribution, so I installed perl v 5.12.4 msi. I carefully pre-pended my PATH to find Perl64/site/bin and Perl64/bin and

export PERL5LIB=/c/prog/Perl64/site/lib:/c/prog/Perl64/lib

Now watch:

$ ppm Perl lib version (5.12.4) doesn't match executable version (v5.8.8) at + /c/prog/Perl64/lib/Config.pm line 50. Compilation failed in require at /c/prog/Perl64/lib/ActivePerl/PPM/Cli +ent.pm line 4. BEGIN failed--compilation aborted at /c/prog/Perl64/lib/ActivePerl/PPM +/Client.pm line 4. Compilation failed in require at /c/prog/Perl64/bin/ppm line 6. BEGIN failed--compilation aborted at /c/prog/Perl64/bin/ppm line 6.

I am not savvy enough to understand how to either get rid of the v5.8.8 without breaking whatever installed it or depends on it, or to get v5.12.4 to ignore the existence of the other one? Thanks in advance.


In reply to 2 perl distributions on Windows 7 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.