Library not loaded error after brew install php56

Czar Pino picture Czar Pino · Jan 12, 2015 · Viewed 12k times · Source

I'm upgrading from php5.5 to php5.6 on OSX Mavericks using homebrew. I run

brew install php56

Everything runs and completes fine but when I run php -v the following error comes up

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.53.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Trace/BPT trap: 5

How do I fix this?

Answer

Den picture Den · Sep 11, 2017

Try this

brew uninstall --ignore-dependencies node icu4c
brew install node