Homebrew Related Errors and Solutions

Abstract

This blog collects the errors and solutions I met with brew.

. dyld: Library not loaded:

1
2
3
* dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/bin/bash
Reason: image not found

This occurs because of /usr/local/bin/bash requires libreadline.6, but there is not such a dylib in the directory. This happens may be because the dependency was installed after bash, but it doesn’t update the bash dependency, so a solution for this is :

1
2
brew rm bash
brew install bash