51
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macOS を10.13.5にアップデートしたらターミナルが死んだ

Last updated at Posted at 2018-06-28

#内容
先日、OSを10.13.5にアップデートすると、その後iTermを開くと一瞬で閉じてしまうということが起きた。
ターミナルから開いてみると以下のように出力されていた。

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

[プロセスが完了しました]

#解決策
シェルをzshからbashに変更してみると普通に動いたので、どうやらzshに問題があったようだ。

以下のコマンドで、zshを入れ直すと生き返った。

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

#参考
https://stackoverflow.com/questions/24103888/error-loading-library-in-mac-terminal

51
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
51
15

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?