Closed Princess-of-Sleeping closed 4 years ago
I think curl
is not installed.
can you try this line:
mkdir test
curl http://dl.vitasdk.org/zlib.tar.xz | tar -C ./test -Jxvf -
and show the result
Kernel@LAPTOP-E2D08E94 MSYS ~
$ mkdir test
Kernel@LAPTOP-E2D08E94 MSYS ~
$ curl http://dl.vitasdk.org/zlib.tar.xz | tar -C ./test -Jxvf -
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
And what does curl --version
give you ?
Kernel@LAPTOP-E2D08E94 MSYS ~
$ curl --version
curl 7.58.0 (x86_64-pc-msys) libcurl/7.58.0 OpenSSL/1.0.2m zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) libssh2/1.8.0 nghttp2/1.30.0
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy Metalink PSL
Very strange, please try the following commands, and see if you have any differences:
$ tar --version
tar (GNU tar) 1.29
[...]
$ xz --version
xz (XZ Utils) 5.2.2
liblzma 5.2.2
$ curl -s dl.vitasdk.org/zlib.tar.xz | md5sum
db8b0b56f9873ae6caa582543fc3c68a -
$ curl -s dl.vitasdk.org/zlib.tar.xz | xxd | head
00000000: fd37 7a58 5a00 0004 e6d6 b446 0200 2101 .7zXZ......F..!.
00000010: 1600 0000 742f e5a3 e2c3 18ef fe5d 0034 ....t/.......].4
00000020: 9b88 8de1 e262 19ac 544f 7809 a31d 2cc7 .....b..TOx...,.
00000030: 3591 ab31 531c 3059 a6b6 b4c2 424a 85ab 5..1S.0Y....BJ..
00000040: 33b9 b957 324d 6bb7 027a bf7b 4424 50e8 3..W2Mk..z.{D$P.
00000050: 0b08 06e4 ad83 6790 3868 1dac 280f b038 ......g.8h..(..8
00000060: dfc6 5ddc 49a0 058d e5e5 e7ed d198 2b51 ..].I.........+Q
00000070: 04d0 9585 041c 19bf 6bdc 82e1 0c00 cb41 ........k......A
00000080: 12c3 26dc 1a7f 25af 920b 357b a474 06ef ..&...%...5{.t..
00000090: 841f c4d8 0654 bce5 f34e 0c0b ca59 d9d1 .....T...N...Y..
Kernel@LAPTOP-E2D08E94 MSYS ~
$ tar --version
tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
作者: John Gilmore, Jay Fenlason.
Kernel@LAPTOP-E2D08E94 MSYS ~
$ xz --version
xz (XZ Utils) 5.2.3
liblzma 5.2.3
$ curl -s dl.vitasdk.org/zlib.tar.xz | md5sum
d41d8cd98f00b204e9800998ecf8427e *-
Kernel@LAPTOP-E2D08E94 MSYS ~
$ curl -s dl.vitasdk.org/zlib.tar.xz | xxd | head
Kernel@LAPTOP-E2D08E94 MSYS ~
$
Okay, So the curl command give you an empty file, that's strange. Are you behind a proxy or a student firewall ? can you access http://dl.vitasdk.org with your browser ? Please try
curl -sv dl.vitasdk.org/zlib.tar.xz
Tried with proxy turned off, nothing changed
Kernel@LAPTOP-E2D08E94 MSYS ~
$ curl -sv dl.vitasdk.org/zlib.tar.xz
* STATE: INIT => CONNECT handle 0x600057540; line 1392 (connection #-5000)
* Added connection 0. The cache now contains 1 members
Kernel@LAPTOP-E2D08E94 MSYS ~
$
My guess would be some kind of firewall that prevent curl from accessing the internet.
Try disabling those security software and it shall be back to normal.
I also expect firewall/secure tool problems. and could you share output of curl -I dl.vitasdk.org/zlib.tar.xz
?
Kernel@LAPTOP-E2D08E94 MSYS ~
$ curl -I dl.vitasdk.org/zlib.tar.xz
Kernel@LAPTOP-E2D08E94 MSYS ~
$
I installed Ubuntu as a temporary workaround and installed Vitasdk. It works fine.
This issues has been closed, but keep in mind that the basic problem is not solved
Understood
As I understand, something your OS configuration (or whatever "security" app you are using) is preventing MSYS binaries from accessing your network.
This issue will be re-opened if someone else have the same issue, then we will explain in the README how to avoid this issue (for example: use docker or WSL/ubuntu instead of MSYS).
we don't need to reopen this issue until to break our binary repo. it could be windows or windows mingw problem.
C:\>curl --version
curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL
Release-Date: [unreleased]
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL
C:\>curl -I dl.vitasdk.org/zlib.tar.xz
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 17 Feb 2020 13:25:56 GMT
Content-Type: application/octet-stream
Content-Length: 72480
Last-Modified: Tue, 11 Feb 2020 10:56:00 GMT
Connection: keep-alive
ETag: "5e428840-11b20"
X-Frame-Options: SAMEORIGIN
Accept-Ranges: bytes
here is my cases
I get output like below on msys2