Skip to content

Instantly share code, notes, and snippets.

@petehouston
Created January 7, 2020 13:51
Show Gist options
  • Save petehouston/e2866c389ab9ab0648e5f4843c1978c3 to your computer and use it in GitHub Desktop.
Save petehouston/e2866c389ab9ab0648e5f4843c1978c3 to your computer and use it in GitHub Desktop.
Resolve Issue: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

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 the icu4c 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment