We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21255
    • 215 Posts
    I cannot decompress modx-0.9.2.1.tar.gz after a fresh download from http://modxcms.com/releases.html
    It seems so be corrupted - is it really a gzip-compressed tar-archive?
      • 22303 MODX Staff
      • 10,725 Posts
      I just downloaded it fresh and it extracted fine with both 7Zip and PowerArchiver. I don’t see any problem with the archive.
        • 21255
        • 215 Posts
        Hmm, tried it again - still the same problem. I’m using Linux (GNU gzip + tar / GNOME File Roller)...
          • 22303 MODX Staff
          • 10,725 Posts
          If you can suggest another way of creating these things I will gladly give it a try, but we have to find a way of generating these archives with a library which can be used in a build script. And the 7Zip libraries, used by both tools I generated these with, seems like the only platform independent option for this. However, if 7Zip can’t build the archives to where they are extractable on any platform, I give up...we tested this for hours when I created these to ensure the archives integrity and this is the first issue I’ve heard of since I changed the setting to where it would work on a Mac. How frustrating...creating archives for distribution used to be so easy -- maybe self-extracting 7z archives would be better? Any ideas, thoughts, suggestions -- anyone on the dev team should be able to easily creating a package for distribution.
            • 21255
            • 215 Posts
            There is a linebreak (or null-characters?) at the end of the gz-archive. Just removed that using my text(!) editor wink and decompression worked like a charm. Gzip complains about that garbage and a [tt]tar zxvf filename.tar.gz[/tt] (which probably most Linux-Users would type) fails due to an error-exitcode of the gzip child process. (http://www.gzip.org/#faq8)
            Hope that helps somehow...
              • 21255
              • 215 Posts
              Using the zip-file, it failed, too: sad

              [tt]#> unzip modx-0.9.2.1.zip
              Archive: modx-0.9.2.1.zip
              End-of-central-directory signature not found. Either this file is not
              a zipfile, or it constitutes one disk of a multi-part archive. In the
              latter case the central directory and zipfile comment will be found on
              the last disk(s) of this archive.
              unzip: cannot find zipfile directory in one of modx-0.9.2.1.zip or
              modx-0.9.2.1.zip.zip, and cannot find modx-0.9.2.1.zip.ZIP, period.
              [/tt]

              Tipp for Linux-Users:
              Download the tar-archive and type
              [tt]
              #> gunzip modx-0.9.2.1.tar.gz
              #> tar xvf modx-0.9.2.1.tar
              [/tt]