Jon*_*Ong 5 unix curl ffmpeg pipe tar
我正在尝试使用以下命令在 travis 上安装 ffmpeg:
curl http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz | tar -C /usr/local/bin/ -xvz
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
$ 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 .
Run Code Online (Sandbox Code Playgroud)
但是,它可以在 OS X 本地运行。这是怎么回事?
看来我刚刚使用了错误的命令!应该是
curl http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz | sudo tar -C /usr/local/bin/ -xJ --strip-components=1
Run Code Online (Sandbox Code Playgroud)