我已经在el capitan上用自制软件安装了mcrypt和mcrypt-php5.6
brew install homebrew/php/php56-mcrypt
brew install mcrypt
和mcrypt -v
告诉我
Mcrypt v.0.9.9 (i386-apple-darwin15.0.0)
Linked against libmcrypt v.2.5.8
Copyright (C) 1998-2002 Nikos Mavroyanopoulos (nmav@gnutls.org)
但是当我尝试创建新的laravel项目时,我得到了
警告:PHP启动:无法加载动态库' /usr/local/Cellar/php56/5.6.21/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so 39; - dlopen(/usr/local/Cellar/php56/5.6.21/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so,9):在第0行的Unknown中找不到图像
同样如php_info()
所示,mcrypt已完全安装但我在编辑器中遇到了最大错误。