Skip to content

Instantly share code, notes, and snippets.

@berkedel
Created April 4, 2018 14:13
Star You must be signed in to star a gist
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
@MohammadYoussof
Copy link

Worked using --force for me, thanks

jbd@mbp % brew uninstall --ignore-dependencies node icu4c
     Uninstalling /usr/local/Cellar/node/15.11.0... (3,313 files, 57.0MB)
     Uninstalling /usr/local/Cellar/icu4c/69.1... (259 files, 72.8MB)
     icu4c 68.2 is still installed.
     To remove all versions, run:
       brew uninstall --force icu4c
jbd@mbp % brew uninstall --force icu4c
     Uninstalling icu4c... (259 files, 72.5MB)
jbd@mbp  % brew install node

Many thanks @jbdemonte .. your solution solved the issue I had.

@nirdeshjoshiya
Copy link

nirdeshjoshiya commented Jun 11, 2022 via email

@seanpierce
Copy link

Thank you for this

@samuelTyh
Copy link

samuelTyh commented Jul 27, 2022

brew reinstall icu4c works! Many thanks

@FrameworkRebecca
Copy link

Thank you! Fixed my issue 👍

@srijeet-geekyants
Copy link

saved my day ! Thanks. Fixed the issue

@jahtomini
Copy link

Thanks so much! I'm glad I found this early.

@yuhangch
Copy link

thanks,just reinstall icu4c not work for me.

@akahanaton
Copy link

thanks so much

@MohammadYoussof
Copy link

thanks,just reinstall icu4c not work for me.
Hi Chen Yu-hang,
Have you tried the option --force which has solved the issue for me? Try the following:

brew uninstall --force icu4c
brew install node
Please check jbdemonte answer above .. Let me know if you have any questions.
Best regards, Mohammad

@zhaoyou
Copy link

zhaoyou commented Dec 2, 2022

it works for me too

@josue2591
Copy link

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

@Jyani-Mittal
Copy link

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

Thanks

@ovieimara
Copy link

Thanks, brew reinstall icu4c did for me

@fpaupier
Copy link

fpaupier commented Feb 7, 2023

brew reinstall icu4c did the job for me too.
Happened to me when I uninstalled another package that was seemingly unrelated.

@mimoo
Copy link

mimoo commented Feb 8, 2023

just happened to me after I did brew upgrade git I believe, solution here worked so thx!

@nickolasmdasilva
Copy link

@mimoo Same situation here. After do brew update git

@PedroPauloML
Copy link

brew reinstall icu4c worked for me!

@labuladong
Copy link

brew reinstall icu4c worked!

@dh-afaqansari
Copy link

brew reinstall icu4c worked!

@jrathorvm
Copy link

For me given below solution worked on Mac

rm -rf /usr/local/Cellar/icu4c
brew reinstall icu4c

Then

gem uninstall charlock_holmes
gem install charlock_holmes

@alexhobday
Copy link

Worked for me, thanks!

@sridharbelagod
Copy link

For me given below solution worked on Mac

rm -rf /usr/local/Cellar/icu4c brew reinstall icu4c

Then

gem uninstall charlock_holmes gem install charlock_holmes

this worked for me!!!

@davpco
Copy link

davpco commented Mar 22, 2023

brew uninstall --ignore-dependencies node icu4c && brew install node worked perfectly!

@Asterisk-z
Copy link

brew uninstall icu4c worked for me

@mugovemachaka
Copy link

This fixed the issue for me as well 🚀

@neri4488
Copy link

neri4488 commented Jul 8, 2023

I followed this stack overflow answer and it worked.
https://stackoverflow.com/a/74856087/2761923

@boydjc
Copy link

boydjc commented Jul 23, 2023

After searching for a solution for a few hours, this ended up working for me. Thank you 🥳

@liudukun
Copy link

liudukun commented Aug 3, 2023

brew uninstall icu4c

@liudukun
Copy link

liudukun commented Aug 3, 2023

brew uninstall icu4c

@saosangmo
Copy link

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

Thanks, it works for me!

@joseglego
Copy link

The brew reinstall icu4c works for me 👍

@baonq-me
Copy link

brew uninstall --ignore-dependencies node icu4c works for me

@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!!! Thanks 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