本文介绍了dyld:库未加载:在Mac上使用brew安装节点后,运行php的/usr/local/opt/icu4c/lib/libicui18n.62.dylib错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用自制软件(Mojave)安装了节点,此后php停止工作,并且如果我尝试运行php -v,我会收到此错误:

I installed node using homebrew (Mojave), afterwards php stoped working and if I try to run php -v I get this error:

php -v
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found

我尝试同时卸载node和icu4c,但问题仍然存在

I tried to uninstall both node and icu4c but the problem persists

推荐答案

我只是遇到了同样的问题.升级Homebrew然后进行清理对​​我有用.由于软件包版本不匹配,此错误可能对我显示.上面的解决方案都不能解决我的错误,但是运行以下自制程序命令可以解决此问题.

I just had this same problem. Upgrading Homebrew and then cleaning up worked for me. This error likely showed up for me because of a mismatch in package versions. None of the above solutions resolved my error, but running the following homebrew commands did.

brew upgrade
brew upgrade // for upgrading all packages -- this is the command I used

brew upgrade {package} // for upgrading a specific package

然后

brew cleanup

这篇关于dyld:库未加载:在Mac上使用brew安装节点后,运行php的/usr/local/opt/icu4c/lib/libicui18n.62.dylib错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 09:30