NOTE: This issue only happens on MacOS with Homebreww is the package manager.
ISSUE:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
PROBLEM:
- There is a dependency named
icu4c
which is required by both NodeJS and PHP. So when you install both NodeJS and PHP via Homebrew, the latter installation might re-install theicu4c
in different version.
SOLUTION
Just reinstall PHP using Homebrew, and that will fix.
$ brew uninstall php
$ brew install php
Or if you want to re-install the previous PHP version.
$ brew uninstall php
$ brew install [email protected]
Have fun ~
Visit my blog at blog.petehouston.com for more coding tips and tutorials.