Error loading library in mac terminal

后端 未结 8 468
北荒
北荒 2021-01-31 02:10

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  
         


        
相关标签:
8条回答
  • 2021-01-31 02:43

    After searching for a long time, this solved it for me:

    brew reinstall ncurses
    
    0 讨论(0)
  • 2021-01-31 02:48

    I suspect you are running into problems while working with Homebrew on MacOSX. I am actually saying this because I have just run into the exact same situation.

    The problem comes after upgrading my MacOSX version to Maverick from Mountain Lion while having already installed Homebrew (of course this may apply to previous and future upgrades). After the upgrade you will need also:

    • Reinstall the XCode tools
    • Run an update on Homebrew

      brew update

    • Run a general upgrade of your Homebrew packages

      brew upgrade

    • Make sure you do not have any other problems on your installation

      brew doctor

    Finally you may find that certain packages are failing due to missing libraries, which seems to be the case you are describing. The idea here is to reinstall the library missing using the brew command.

    In your case you would need to reinstall the gdbm library by performing the next steps on your terminal:

    brew uninstall gdbm
    brew install gdbm
    

    That should fix it.

    0 讨论(0)
提交回复
热议问题