[英]Impossible to install PHP 8 on mac
I have a problem when I try to install PHP 8 on macOS.当我尝试在 macOS 上安装 PHP 8 时遇到问题。 I use the following commands:我使用以下命令:
brew tap shivammathur/php
brew install shivammathur/php/php@8.0
brew link --overwrite --force php@8.0
But after, when I try to execute php -v
I have this result:但是之后,当我尝试执行php -v
我有这个结果:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicuio.67.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
[1] 28817 abort php -v
Can you help me?你能帮助我吗? It seems my $PATH var has a problem.看来我的 $PATH var 有问题。
Thanks谢谢
Try尝试
brew install icu4c
or或者
brew reinstall icu4c
it solved for me它为我解决了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.