【问题标题】:Cannot get ffmpeg to work after installing from homebrew从自制软件安装后无法让 ffmpeg 工作
【发布时间】:2015-07-24 13:40:10
【问题描述】:

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

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

我试过运行 brew updatebrew upgrade 但这并没有改变任何东西。运行brew doctor 我得到的唯一错误是:

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

刚开始在终端做事,接下来要做什么?

【问题讨论】:

    标签: shell ffmpeg homebrew


    【解决方案1】:

    我通过运行brew search liblzma 让它工作,它告诉我lzma is now part of the xz formula.

    然后我运行brew install xz 并尝试再次运行ffmpeg,它现在可以工作了!

    【讨论】:

    • 一个注释,brew install xz 花了几个小时(并没有修复它)。
    【解决方案2】:

    今天的工作原理

    我正在运行 OSX Mojave 10.14.5 并收到了 dyld: Library not loaded: /usr/local/lib/liblzma.5.dylib 投诉。

    • brew install xz 无效
    • 重新安装就像老板一样工作
    brew uninstall --force ffmpeg && brew install ffmpeg
    

    【讨论】:

    • 我有一个错误:Error: ffmpeg: no bottle available! 并且不得不做一个brew install --build-from-source ffmpeg
    猜你喜欢
    • 2020-09-02
    • 2021-08-24
    • 2021-07-20
    • 2011-10-01
    • 1970-01-01
    • 2015-01-11
    • 2019-09-14
    • 1970-01-01
    相关资源
    最近更新 更多