Home >Backend Development >PHP Tutorial >Why Does PHP Fail to Load After Installing Node via Homebrew: 'dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib'?
PHP Fails to Load After Installing Node via Homebrew: "dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib"
Problem:
After installing Node.js using Homebrew on macOS Mojave, PHP encounters an error when attempting to load a library:
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.js and icu4c does not resolve the issue.
Solution:
To address this error, the following steps have been recommended:
Homebrew Version Mismatch:
Package Upgrade:
Cleanup:
Cautions:
The above is the detailed content of Why Does PHP Fail to Load After Installing Node via Homebrew: 'dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib'?. For more information, please follow other related articles on the PHP Chinese website!