Skip to content

Instantly share code, notes, and snippets.

@hgrimelid
Created August 17, 2018 07:36
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save hgrimelid/703691ab48c4a4d0537cfe835b4d55a6 to your computer and use it in GitHub Desktop.
Save hgrimelid/703691ab48c4a4d0537cfe835b4d55a6 to your computer and use it in GitHub Desktop.
php: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib

After upgrading to Node v.10.9.0 via Homebrew the following error message was thrown from PHP:

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

Reinstall PHP to fix, for me that's:

brew reinstall php@7.1

@sid3r
Copy link

sid3r commented Sep 19, 2023

Reinstalling and compiling from source fixed the issue for me

brew reinstall --build-from-source php

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