Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@codetombomb
Copy link

codetombomb commented Apr 14, 2021

I didn't need to reinstall node, just reinstall icu4c:

brew reinstall icu4c

This happened after Homebrew decided to update all my libs (I'm guessing there's a setting to stop it from doing this)

Thank you! This worked for me!

@besi
Copy link

besi commented Apr 21, 2021

I tried this:

brew link icu4c  

But then I got an error indicating that the software was not installed through homebrew at all:

Warning: Refusing to link macOS provided/shadowed software: icu4c
If you need to have icu4c first in your PATH, run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc

For compilers to find icu4c you may need to set:
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"

For pkg-config to find icu4c you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"

Weirdly if I did: brew install icu4c I tog the following message:

Warning: icu4c 68.2 is already installed and up-to-date.

So I reinstalled it like so:

brew reinstall icu4c

@letiesperon
Copy link

letiesperon commented Apr 29, 2021

Thanks! New Mac OS update gave me this issue

@kazuki04
Copy link

kazuki04 commented May 1, 2021

Thanks! This worked for me.

@mohammedgad
Copy link

mohammedgad commented May 1, 2021

Thank you, That worked like charm with Mac OS.

@tedsecretsource
Copy link

tedsecretsource commented May 3, 2021

Worked like a charm, even with nvm installed.

@spivurno
Copy link

spivurno commented May 6, 2021

Worked! 🙏

@dpatsora
Copy link

dpatsora commented May 10, 2021

Worked for me!
Thank you)

@ahmeed83
Copy link

ahmeed83 commented May 21, 2021

Thanks!

@mykola-yarchuk
Copy link

mykola-yarchuk commented May 21, 2021

thanks

@capripot
Copy link

capripot commented May 28, 2021

brew reinstall icu4c did it for me!

@d3r3kx
Copy link

d3r3kx commented May 31, 2021

Works for me, thanks!

@davidroettger
Copy link

davidroettger commented Jun 15, 2021

I had to set the node version via nvm use then it worked.

@maxnik
Copy link

maxnik commented Jul 1, 2021

brew reinstall icu4c did it for me!

Thanks, this incantation removed the error for me on MacOS 10.13.6

@pincheira
Copy link

pincheira commented Aug 2, 2021

brew reinstall icu4c did it for me!

thanks! this did it for me on 11.4 (20F71)

@jbdemonte
Copy link

jbdemonte commented Sep 2, 2021

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

@PABourdais
Copy link

PABourdais commented Sep 10, 2021

brew reinstall icu4c did the work, this happened because I uninstalled icu4c with brew uninstall watchman

thanks!

@maciej-nawrocki
Copy link

maciej-nawrocki commented Sep 16, 2021

Worked for me!

@gregblass
Copy link

gregblass commented Sep 29, 2021

brew reinstall icu4c was also the problem in my case!

@jkone27
Copy link

jkone27 commented Feb 1, 2022

thank you had the same issues... solved!

@tomaserlebach
Copy link

tomaserlebach commented Mar 19, 2022

Saved my day. Thanks a lot!

@ishiharas
Copy link

ishiharas commented Mar 31, 2022

brew reinstall icu4c worked!! nice, thanks a lot.

@tejash-jl
Copy link

tejash-jl commented Apr 7, 2022

Reinstalling icu4c worked brew reinstall icu4c.

This works!

@glambs
Copy link

glambs commented Apr 13, 2022

For me, it was an issue with openldap looking at php 7.2 instead of php 7.4. Uninstall php 7.2 and reinstall php 7.4. Steps:

  1. brew uninstall php@7.2

  2. rm -rf /usr/local/etc/php

  3. brew reinstall php@7.4

@TANK2003
Copy link

TANK2003 commented May 8, 2022

I didn't need to reinstall node, just reinstall icu4c:

brew reinstall icu4c

This happened after Homebrew decided to update all my libs (I'm guessing there's a setting to stop it from doing this)

👍 👍

@mr-niri
Copy link

mr-niri commented May 24, 2022

I didn't need to reinstall node, just reinstall icu4c:

brew reinstall icu4c

This happened after Homebrew decided to update all my libs (I'm guessing there's a setting to stop it from doing this)

Thank you!
Also, it worked for me.

@MohammadYoussof
Copy link

MohammadYoussof commented May 29, 2022

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

@seanpierce
Copy link

seanpierce commented Jun 23, 2022

Thank you for this

@samuelTyh
Copy link

samuelTyh commented Jul 27, 2022

brew reinstall icu4c works! Many thanks

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