Macos – ffmpeg dyld: Library not loaded: /usr/local/lib/libmp3lame.0.dylib


I am getting this error when running ffmpeg on OSX Yosemite 10.10.2

dyld: Library not loaded: /usr/local/lib/libmp3lame.0.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: image not found
Trace/BPT trap: 5

How do I install / compile libmp3lame.0.dylib ? ffmpeg was installed using homebrew

Best Answer

I resolved this by running the following commands in terminal (I use the package manager homebrew for managing Unix based tools under OSX)

brew uninstall lame
brew install lame
sudo brew link lame
Related Question