Saxonica / Saxon-HE

Saxon-HE open source repository
96 stars 8 forks source link

Cannot unzip the downloaded file from this repo #4

Closed rizwaan08 closed 1 year ago

rizwaan08 commented 1 year ago

Archive: SaxonHE10-3J.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 SaxonHE10-3J.zip or SaxonHE10-3J.zip.zip, and cannot find SaxonHE10-3J.zip.ZIP, period.

rizwaan08 commented 1 year ago

I used the command wget https://github.com/Saxonica/Saxon-HE/blob/main/12/Java/SaxonHE10-3J.zip unzip SaxonHE10-3J.zip

michaelhkay commented 1 year ago

I'm a bit surprised you find anything at that URL. Have you tried

https://github.com/Saxonica/Saxon-HE/blob/main/10/Java/SaxonHE10-3J.zip

ndw commented 1 year ago

In order to download a binary file directly from GitHub, you have to put /raw/ in the URI. Try:

wget https://github.com/Saxonica/Saxon-HE/raw/main/10/Java/SaxonHE10-3J.zip

That's the link you'll find behind the "download" button if you navigate to the page.

ndw commented 1 year ago

(Sorry, I didn't actually mean to click "close" but I'm pretty confident this will fix the problem for you. Please reopen it if you continue to have trouble!)

rizwaan08 commented 1 year ago

Thank you @ndw , it worked after inserting raw in the URI