gpt4 book ai didi

php - 在 Mac 上使用 brew 安装 Node 后,dyld : Library not loaded:/usr/local/opt/icu4c/lib/libicui18n. 62.dylib 错误运行 php

转载 作者:IT老高 更新时间:2023-10-28 11:42:55 27 4
gpt4 key购买 nike

我使用 Homebrew 软件 (Mojave) 安装了 Node ,之后 php 停止工作,如果我尝试运行 php -v 我收到此错误:

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,但问题仍然存在

最佳答案

Update - As stated in some of the comments, running brew cleanup could possibly fix this error, if that alone doesn't fix it, you might try upgrading individual packages or all your brew packages.

我也遇到了同样的问题。升级 Homebrew 然后清理对我有用。由于包版本不匹配,这个错误可能出现在我身上。上述解决方案都没有解决我的错误,但运行以下 Homebrew 命令可以解决。

Caution - This will upgrade all your brew packages, including, but not limited to PHP. If you only want to upgrade specific packages make sure to be specific.

brew upgrade icu4c

brew upgrade // or upgrade all packages

最后

brew cleanup

关于php - 在 Mac 上使用 brew 安装 Node 后,dyld : Library not loaded:/usr/local/opt/icu4c/lib/libicui18n. 62.dylib 错误运行 php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53828891/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com