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?
Mac/Linux. Open a terminal window by pressing command and space on your keyboard to open Spotlight, typing Terminal, and pressing enter. Check if you have ffmpeg installed and what version you have installed. In the terminal, type ffmpeg -version and press enter.
To install FFmpeg: Go to https://www.ffmpeg.org/download.html. In Get packages & executable files, click the Mac icon. A link to static builds for macOS is displayed.
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!
I'm running OSX Mojave 10.14.5 and got the dyld: Library not loaded: /usr/local/lib/liblzma.5.dylib
complaint.
brew install xz
did not workbrew uninstall --force ffmpeg && brew install ffmpeg
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With