无法加载动态库 'php_intl.dll

问题描述

我已经使用自制命令 7.4.15 在 macbook 上安装了 Xampp brew install --cask xampp。我想在需要 PHP intl extension 的 sylius 项目中使用它。当我运行 bin/console sylius:install 命令来检查项目要求是否已满并设置项目数据库时,它会向我抛出一个错误提示

PHP Warning: PHP Startup: Unable to load dynamic library 'PHP_intl.dll' (tried: /Applications/XAMPP/xamppfiles/lib/PHP/extensions/no-debug-non-zts-20190902/PHP_intl.dll (dlopen(/Applications/XAMPP/xamppfiles/lib/PHP/extensions/no-debug-non-zts-20190902/PHP_intl.dll,9): image not found)

enter image description here

我试图在位于 extension=PHP_intl.dllPHP.in 文件中取消注释 /Applications/XAMPP/xamppfiles/etc/PHP.ini 并重新启动服务器但没有任何运气,我还尝试使用 {{1} 安装 icu4c尝试手动添加扩展,但在安装时它也会抛出一个错误

错误:未找到类似命名的公式。

错误:没有可用的名为“icu4c”的公式或木桶。

enter image description here

我使用的 PHP 版本是 brew install icu4c,如果您知道可能有帮助的内容,请联系我们,如果您需要有关该问题的更多信息,请告诉我,谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)