我通过自制软件安装了 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 update
和 brew 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
,现在可以了!
我正在运行 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
运行 酿造安装xz
还有
酿造链接xz
这对我有用