in reply to Perl binary - Perl Installer Issue in windows

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? :)

Replies are listed 'Best First'.
Re^2: Perl binary - Perl Installer Issue in windows
by greatshots (Pilgrim) on Dec 08, 2006 at 03:32 UTC
    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')"
    The above prints '500' what does that mean ? I executed the above in HP Unix Box.
      The above prints '500' what does that mean ?

      I think it means that a server error was encountered. (I actually get '404' - which tells me the file wasn't found.)

      There's no such file as 'http://downloads.activestate.com/.../ActivePerl-5.8.8.819-MSWin32-x64-267479.msi'.
      Try ' http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.8.819-MSWin32-x64-267479.msi'.

      Cheers,
      Rob
      Update:Fix the location specified to specify the 64-bit version (x64) instead of the 32-bit version (x86).
        as bart said, I had that install Issue,becasue I downloaded the package from Firefox browser. I downloaded the same file using IE. now The problem got solved.