I tried installing it on 64bit Windows 7 with Strawberry Perl 5.16.2, and I got the same error.

There appears to be a problem with one of the Makefile commands:

cd lib/XML/XSH2; env LC_ALL=C LANG=C $(PERL) -MGrammar -e XML::XSH +2::Grammar::compile

According to process monitor, this is executed as:

C:\windows\system32\cmd.exe /S /c "cd lib/XML/XSH2; set LC_ALL=C; set +LANG=C; C:\strawberry\perl\bin\perl.exe -MGrammar -e XML::XSH2::Gramm +ar::compile"

And cmd.exe doesn't like this command. It looks to me (I'm guessing here) that cd interprets everything after the 'cd' in that command as the path of the directory to change to. Of course, that isn't a valid path.

Documentation for cmd.exe says it can be given multiple commands but separated by &, rather than ;. So, I tried editing the Makefile, replacing ';' with '&' and it progressed a little further, but there were errors in testing

The test failures may be because the tests use features not available on windows, like the Makefile does, rather than because the module didn't build successfully.


In reply to Re: Unable To Install XML::XSH2 On Microsoft Windows Under Strawberry Perl 5.16.2 by ig
in thread Unable To Install XML::XSH2 On Microsoft Windows Under Strawberry Perl 5.16.2 by Jim

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.