从自制软件安装后无法使ffmpeg工作 [英] Cannot get ffmpeg to work after installing from homebrew

查看:276
本文介绍了从自制软件安装后无法使ffmpeg工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过自制软件安装了ffmpeg,但是当我尝试运行它时,即使输入了 ffmpeg ,我收到以下错误消息:

  dyld:库未加载:/usr/local/lib/liblzma.5.dylib 
引用自:/ usr / local / bin / ffmpeg
原因:不兼容的库版本:ffmpeg需要8.0.0或更高版本,但liblzma.5.dylib提供版本6.0.0
跟踪/ BPT陷阱:5
/ pre>

我尝试运行 brew update brew upgrade 但没有改变任何东西。运行酿造医生我得到的唯一错误是:

 警告:你有一个curlrc文件
如果您无法使用Homebrew下载软件包,那么也许这个
是问题?如果以下命令不起作用,那么尝试删除
您的curlrc:
curl http://github.com

新的在终端做事情,下一步做什么?

解决方案

它运行 brew搜索liblzma ,告诉我 lzma现在是xz公式的一部分。



所以我跑了$ code> brew install xz ,并尝试再次运行 ffmpeg 它现在工作!


I installed ffmpeg through homebrew but when I try to run it, even just typing in ffmpeg I get the following error message:

dyld: Library not loaded: /usr/local/lib/liblzma.5.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: Incompatible library version: ffmpeg requires version 8.0.0 or later, but liblzma.5.dylib provides version 6.0.0
Trace/BPT trap: 5

I've tried running brew update and brew upgrade but that didn't change anything. Running brew doctor the only error I get is:

Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
  curl http://github.com

New at doing things in the terminal, what to do next?

解决方案

I got it to work by running brew search liblzma which told me lzma is now part of the xz formula.

So then I ran brew install xz and tried running ffmpeg again and it works now!

这篇关于从自制软件安装后无法使ffmpeg工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆