0
1

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.

[Mac]PHPで「dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib」エラーの対処法

Last updated at Posted at 2020-06-03

Macで作業していたら、ある日突然PHPがエラーを吐いて動かなくなったので、対処法を残しておきます。

環境

MacOS Catalina version 10.15.4
PHP 7.2 *brewでインストールしたやつ

エラー内容

php -vコマンドを実行すると以下の様なエラーになりました。

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
  Referenced from: /usr/local/opt/php@7.2/bin/php
  Reason: image not found
zsh: abort      php -v

対処法

原因は、libicui18n.64.dylibのモジュールが読み込めていない様子。
PHPの場合は、バージョン指定をして再インストールすることで解決しました。

brew reinstall php@7.2
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?