1 | initial version |
The error "dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib" occurs due to a missing library that is required by the PHP extension intl. This library is installed through Homebrew along with the icu4c formula. To resolve this issue, run the following command:
brew install icu4c
After installing icu4c, add the following line to your .bashrc or .zshrc file:
export PATH="/usr/local/opt/icu4c/bin:$PATH"
Then, run the following command to link the icu4c libraries:
brew link --force icu4c
Restart your terminal, and the error should be resolved.