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? :) | [reply] [d/l] [select] |
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. | [reply] [d/l] |
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).
| [reply] |
greatshots,
have you tried validating the file you downloaded against the MD5SUM? If there is a problem with the file then report it. There may be a mirror of this file elsewhere. Which version of MSI do you have installed? Are you installing this remotely?
Hope this helps.
Martin
Update: Added two questions and fixed a spelling mistake | [reply] |
You can alternatively download the '.zip' version (which is the one I always grab ... there's something about the msi packages that I dislike ... but I can no longer recall precisely what it is :-) Just unpack the zip archive, and run the 'Installer.bat' that comes with it, to install Perl to the location of your choice. (You can then remove the entire directory into which the zip archive was unpacked.)
Cheers, Rob | [reply] |