我试图使用以下命令在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上本地工作。发生了什么?
发布于 2015-04-16 06:34:36
好像我用错了命令!应该是
curl http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz | sudo tar -C /usr/local/bin/ -xJ --strip-components=1发布于 2015-03-30 06:12:36
.xz不是.gz。GNU tar显然承认XZ格式,但OS不使用GNU。我找到了这句话
不需要安装任何东西,就可以使用带有无文档化的
tar参数的--xz程序使用XZ压缩来创建TAR存档。
发布于 2015-03-30 06:16:35
https://stackoverflow.com/questions/29339420
复制相似问题