Вопрос

I've got this message in Terminal.app at startup

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

[Process completed]

I have found some links regarding this issue.

But the problem is that I can't run terminal app, so it's not possible for me to try brew doctor or other options.

It's not possible to reinstall Terminal app, other terminal app (iTerm2) is not running at all.

Is there a way to fix this problem without reinstalling OSX?

Это было полезно?

Решение

  1. Choose Shell → New Command….

  2. Run chsh -s /bin/bash and make sure to deselect ‘Run command inside a shell’.

  3. Enter your user account password at the prompt to change your shell back to /bin/bash.

Другие советы

Are you running zsh? I'm seeing a similar problem while running iTerm2. It seems to be a problem with zsh and not with Terminal or iTerm2. Just started happening to me.

If you had installed zsh with Homebrew and you are having that problem, what worked for me was:

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

If you didn't install zsh with Homebrew, then ignore this :-)

Easier I think:
Download iTerm2 and brew update && brew upgrade zsh worked for me ;-)

To be able to fix my terminal/iterm2/hyper (all were broke because of broken zsh) I had to first change my terminal settings 'Shells open with' from a custom command to the default login shell

enter image description here

The trick from @grg didn't work for me. With these changes, I was able to update my zsh via homebrew as suggested in the other answers and all three apps worked as expected again.

After searching for a while, this solved it for me:

brew reinstall ncurses
Лицензировано под: CC-BY-SA с атрибуция
Не связан с apple.stackexchange
scroll top