Skip to content

Instantly share code, notes, and snippets.

@berkedel
Created April 4, 2018 14:13
Show Gist options
  • Save berkedel/d1fc6d13651c16002f64653096d1fded to your computer and use it in GitHub Desktop.
Save berkedel/d1fc6d13651c16002f64653096d1fded to your computer and use it in GitHub Desktop.
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

How to solve dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

brew uninstall --ignore-dependencies node icu4c
brew install node
@jws1837
Copy link

jws1837 commented Oct 17, 2023

Updating the php version worked for me (from 7.4 to 8.1)

brew uninstall php@7.4 rm -rf /usr/local/etc/php brew reinstall php

ok thank you

@gusmantap
Copy link

This is work on my macbook air m1. Fixed every version installed php

brew upgrade icu4c
brew upgrade

@yogithesymbian
Copy link

yogithesymbian commented Nov 6, 2023

i have same issue but ,,,
i have multiple node version on brew 12, 18, and 21.
on version 18 there is no error .
only error on version 12.

> brew list | grep node
// error when check version `node -v`
node // V21.1.0 // works
node@12 // error // this no longer on brew install node@12 be aware before re install / uninstall
node@14 // not test
node@18 // works 
# export PATH="/opt/homebrew/opt/node@12/bin:$PATH"
# export PATH="/opt/homebrew/opt/node@14/bin:$PATH"
# export PATH="/opt/homebrew/opt/node/bin:$PATH"
 export PATH="/opt/homebrew/opt/node@18/bin:$PATH"

@Frankzmwang
Copy link

Thank you very much!!!

@Frankzmwang
Copy link

Uploading Snipaste_2024-03-13_10-21-30.png…

@thescubageek
Copy link

Worked, thanks for unblocking me!

@aslamcodes
Copy link

brew uninstall --ignore-dependencies node icu4c && brew install node
Worked!!

@seanr
Copy link

seanr commented Mar 28, 2024

Updating the php version worked for me (from 7.4 to 8.1)

brew uninstall php@7.4 rm -rf /usr/local/etc/php brew reinstall php

You're a lifesaver!!! Thank you! BTW, I had multiple versions (brew list | grep php), so I removed all but php (with no version) and then just did the reinstall and now it's perfect.

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