gpt4 book ai didi

shell - 从 Homebrew 软件安装后无法让 ffmpeg 工作

转载 作者:行者123 更新时间:2023-12-03 22:59:48 29 4
gpt4 key购买 nike

我通过 Homebrew 软件安装了 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

终端处事新手,下一步怎么办?

最佳答案

我通过运行 brew search liblzma 让它工作告诉我lzma is now part of the xz formula.
于是我跑了brew install xz并尝试运行 ffmpeg再次,它现在可以工作了!

关于shell - 从 Homebrew 软件安装后无法让 ffmpeg 工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31612086/

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