gcc - Failing to install mingw: mingw-get-gui: *** ERROR *** unexpected end of archive reading header record -


i trying install mingw couple of hours, keep on getting following error message:

"install: gcc-c++-4.8.1-4-mingw32-bin.tar.lzma installing gcc-c++-4.8.1-4-mingw32-bin.tar.lzma mingw-get-gui: * error * unexpected end of archive reading header record"

and cannot find solution problem. tried reinstall 7zip, because thought may caused that. trying install gcc on 32-bit windows 7. happy suggestions.

bye!

even though old question, post answer, in case other users come across again.

i encountered same problem:

at first did not notice went wrong installation/upgrade itself, because graphical update manager showed line "everything went successful" ...

if had bothered log details, have seen error messesage mingw-get-gui: * error * unexpected end of archive reading header record , known, went wrong (its misleading, show dialog saying task completed when there errors!).

but pertaining problem (or @ least was, caused mine):

cause

most went wrong, when mentioned archive file downloaded. unfortunately, mingw-get seems ignore download errors , continues if nothing went wrong... error message archive header record invalid, because not archive file, text file containing html error message.

to complicate things further, mingw-get caches these files , when try re-install packages uses these invalid, cached files.

solution

one way of fixing this, delete cached files , re-install package. cached files should at

<mingw directory>\var\cache\mingw-get\packages 

e.g. c:\mingw\var\cache\mingw-get\packages

side note: if "lost" error message me, , don't know, packages there error, can search cache directory files contain html error message, e.g. search term <html> should work; these files quite small, there may other valid packages small file size no unambiguous criterion

if continue error messages * error * unexpected end of archive reading header record mingw-get tool try download file manually , place in folder cached packages.

for re-installing packages use graphical interface of mingw-get (e.g. remove , install package) or, example command line version

mingw-get --reinstall install <package name> 

for mingw packages <package name> prefix of file name (before first version number), e.g. for

libiconv-1.14-3-mingw32-dev.tar.lzma 

the package name libiconv. msys packages package name has prefix msys-, e.g. msys-libopts

(you should able see if it's mingw or msys package looking @ part of file name comes after first version number, e.g. libiconv-1.14-3-mingw32-dev.tar.lzma: ...3-mingw32-de...)


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -