Some libraries are updated and depending software is not always recompiled to take the changes into account, leading to errors such as:
dyld: Library not loaded: /usr/local/Cellar/gettext/0.18.1.1/lib/libintl.8.dylibThe above error is due to a GetText update (now 0.18.2.x) and by the fact that I have removed the old library.
So, How-To troubleshoot this kind of error ?
Well, at first you need to know which programs and libraries are depending on the changed one:
1. Open a Terminal window
2. Type in the following command: brew uses --installed gettext
3. Wait, and you'll be returned the programs/libraries that depend on gettext, in my case only 2: dos2unix and php53.
4. Perform a full reinstall of these programs/libraries using the following commands:
brew remove dos2unixAnd things should be fixed.
brew install --build-from-source dos2unix