LoginSignup
1
0

More than 3 years have passed since last update.

Laravel newしたら「dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib」エラーが出るときの解決法

Posted at

laravel new アプリ名

とすると、


dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
Abort trap: 6

とエラーが表示されました。

homebrewのバージョンが原因のようです。

brew update && brew upgrade

するとエラーになりました。権限なないことが原因のようです。

Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all

下記のコマンドで権限を付与します。

sudo chown -R  /usr/local
usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
       chown [-fhnv] [-R [-H | -L | -P]] :group file ...

再度homebrewのバージョンアップします。

brew update && brew upgrade

今度は成功しました。

そして、

homebrewをバージョンアップしたので、Laravelアプリを作成します。

laravel new アプリ名
Package manifest generated successfully.
Application ready! Build something amazing.

今度は成功しました😊

1
0
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
1
0