我刚刚从Linux转到Mac,在使用适用于Laravel的正确驱动程序安装PHP时遇到了一些问题。
我跑了brew install homebrew/php/php56-mysqlnd_ms
但是现在我不断收到这个错误
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php56-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php56-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php56-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php56-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
phpinfo()
PHP Version => 5.6.21
有人知道如何解决此错误吗?我很茫然
最佳答案
您缺少mcrypt。你可以试试 ,brew install php54-mcrypt --without-homebrew-php
然后在/etc/php.ini
中添加,extension="/usr/local/Cellar/php54-mcrypt/5.4.24/mcrypt.so"
希望对您有所帮助,请告诉我们
关于php - 使用PHP和PDO进行Laravel和Brew安装,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/36933433/