Error loading library in mac terminal

knz picture knz · Jun 8, 2014 · Viewed 14.2k times · Source

Anyone please help..
How can I fix the following error:

dyld: Library not loaded: /usr/local/lib/libgdbm.4.dylib  
  Referenced from: /usr/local/bin/zsh  
  Reason: image not found  

Answer

De_Vano picture De_Vano · Jun 19, 2018

Simple reinstall zsh will help you:

brew reinstall zsh && brew unlink zsh && brew link zsh

Alternatively you can try to upgrade zsh

brew upgrade zsh