dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib

昨天给电脑安装node.js,今早开机启动php-fpm的时候发现报错如下:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
  Referenced from: /usr/local/opt/[email protected]/sbin/php-fpm
  Reason: image not found

去提示目录/usr/local/opt/icu4c/lib发现链的是libicui18n.67.1.dylib,版本不一致,查下资料发现好像是因为安装node的时候给覆盖了
解决办法就是更新或者升级下php,我是brew安装的[email protected]版本的,就更新了下7.2(升级就是假如你是7.2 命令就执行brew upgrade [email protected])我的执行命令如下:

brew cleanup
brew upgrade [email protected]

更新完之后重启下php,然后执行php-fpm就好了

你可能感兴趣的:(dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib)