我需要在本地设置一个magento站点,但在安装过程中,我收到错误"必须加载PHP扩展"mcrypt"。然后我通过执行php -m检查扩展,并注意到扩展不存在。 然后我尝试使用brew安装php71-mcrypt安装它,但它不起作用,所以我尝试brew安装mcrypt@php71-mcrypt,但我收到错误"错误:没有名称为"@php71-mcrypt"的可用公式"。
有人知道如何安装它或如何绕过magento安装的错误吗?
如果它对其他人有帮助,我通过使用不同的 php 版本解决了这个问题!