Error loading library in mac terminal

后端 未结 8 646
北荒
北荒 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:37

    I had the same issue and did not have an option to change the terminal on startup.

    I ended up doing the following steps to resolve the problem:

    1. Create a new user on my mac & enable remote login for him.

    2. Login with the new user, which got a new working shell.

    3. Changing the shell of my original account back to bash, using the chsh command.

    4. Upgrading zsh using brew.

    It Worked!

提交回复
热议问题