gpt4 book ai didi

unix - curl | tar - gzip : stdin: not in gzip format

转载 作者:行者123 更新时间:2023-12-02 01:39:26 25 4
gpt4 key购买 nike

我正在尝试使用以下命令在 travis 上安装 ffmpeg:

curl http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz | tar -C /usr/local/bin/ -xvz

我收到此错误:
$ curl http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz | tar -C /usr/local/bin/ -xvz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
gzip: stdin: not in gzip format
tar: Child died with signal 13
tar: Error is not recoverable: exiting now
The command "curl http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz | tar -C /usr/local/bin/ -xvz" failed and exited with 2 during .

但是,它可以在 OS X 上本地运行。这是怎么回事?

最佳答案

.xz不是 .gz . GNU tar显然可以识别 XZ 格式;但 OS X 不使用 GNU 工具。我找到了this quote :

Without installing anything, a TAR archive can be created with XZ compression using the tar program with the undocumented --xz argument.

关于unix - curl | tar - gzip : stdin: not in gzip format,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29339420/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com