Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error loading library in mac terminal

Tags:

terminal

dyld

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   
like image 202
knz Avatar asked Jun 08 '14 07:06

knz


2 Answers

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 
like image 82
De_Vano Avatar answered Nov 23 '22 02:11

De_Vano


Late to the party on this one, but simply running

brew upgrade zsh

solved my issue on MacOS High Sierra. Trying to uninstall gdbm will throw dependency errors against zsh and python, and re-doing the symlinks didn't solve for me, either

like image 28
C.Nivs Avatar answered Nov 23 '22 02:11

C.Nivs