Home >Backend Development >PHP Tutorial >Why Does Installing Node with Brew Cause a 'Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib' Error for PHP?
Troubleshooting dyld Error: "Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib" for PHP After Installing Node with Brew
Problem:
Upon installing Node using Homebrew on macOS Mojave, PHP encounters an error upon execution with "php -v":
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib Referenced from: /usr/local/bin/php Reason: image not found
Uninstalling both Node and icu4c does not resolve the issue.
Solution:
To address this error, try the following steps:
Additional Considerations:
Follow these steps to resolve the issue and ensure PHP functions properly even after installing Node with Homebrew.
The above is the detailed content of Why Does Installing Node with Brew Cause a 'Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib' Error for PHP?. For more information, please follow other related articles on the PHP Chinese website!