Occasionally I have this happen when trying to install Firefox extensions. The problem then usually is getting back a bad MIME type from the server: the browser thinks it's text, and it saves it as text, with line ends translated.

A solution that works, most of the time, is downloading the file in another way, i.e. not using the browser. wget that you can get for example in UnxUtils, will most likely do. If you have perl already, a simple LWP::Simple script will do too:

perl -MLWP::Simple -e "print getstore('http://downloads.activestate.co +m/.../ActivePerl-5.8.8.819-MSWin32-x64-267479.msi', 'ActivePerl-5.8.8 +.819-MSWin32-x86-267479.msi')"
which should print "200" and save the file on your filesystem, as binary. n.b. I blanked out the exact URL because ActiveState likes you to optionally enter your contact details before downloading, and I don't want them to be angry at me by bypassing that. Just proceed from http://www.activestate.com/store/activeperl/download to get the real URL.

Of course, to download perl this way, you have a bit of a chicken-and-egg problem, haven't you? :)


In reply to Re: Perl binary - Perl Installer Issue in windows by bart
in thread Perl binary - Perl Installer Issue in windows by greatshots

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.