Fix OSX “dyld: Library not loaded”

I’m using OSX Mojave with zsh and all of sudden I always got an error when opening a new terminal session after doing an upgrade.

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/awk
Reason: image not found

Seems like there’s an error from awk and I found the solution by upgrading gawk

$ brew upgrade gawk

Reference: https://stackoverflow.com/a/40281206/1936697

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s